summaryrefslogtreecommitdiff
path: root/src/lua5/cdlua5_canvas.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-07-18 03:00:40 +0000
committerscuri <scuri>2010-07-18 03:00:40 +0000
commit5515e1c25cf404c849d8e090aec24c3869036601 (patch)
tree286d0b65bbf062ce1619c094a5cc9647bf953dd7 /src/lua5/cdlua5_canvas.c
parent9d336f5f284149f4e03db7db117bde276890a37f (diff)
*** empty log message ***
Diffstat (limited to 'src/lua5/cdlua5_canvas.c')
-rw-r--r--src/lua5/cdlua5_canvas.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua5/cdlua5_canvas.c b/src/lua5/cdlua5_canvas.c
index c2f6008..0ea9b1b 100644
--- a/src/lua5/cdlua5_canvas.c
+++ b/src/lua5/cdlua5_canvas.c
@@ -398,7 +398,7 @@ static int cdlua5_gettransform(lua_State *L)
{
int i;
double* matrix = cdCanvasGetTransform(cdlua_checkcanvas(L, 1));
- lua_newtable(L);
+ lua_createtable(L, 6, 0);
for (i=0; i < 6; i++)
{
lua_pushnumber(L, matrix[i]);
@@ -1505,7 +1505,7 @@ static int cdlua5_gettextbounds(lua_State *L)
int i;
cdCanvasGetTextBounds(cdlua_checkcanvas(L, 1), x, y, s, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);
@@ -1526,7 +1526,7 @@ static int wdlua5_gettextbounds(lua_State *L)
int i;
wdCanvasGetTextBounds(cdlua_checkcanvas(L, 1), x, y, s, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);
@@ -1631,7 +1631,7 @@ static int cdlua5_vectortexttransform(lua_State *L)
}
old_matrix = cdCanvasVectorTextTransform(cdlua_checkcanvas(L, 1), matrix);
- lua_newtable(L);
+ lua_createtable(L, 6, 0);
for (i=0; i < 6; i++)
{
lua_pushnumber(L, old_matrix[i]);
@@ -1746,7 +1746,7 @@ static int cdlua5_getvectortextbounds(lua_State *L)
int rect[8], i;
cdCanvasGetVectorTextBounds(cdlua_checkcanvas(L, 1), s, x, y, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);
@@ -1767,7 +1767,7 @@ static int wdlua5_getvectortextbounds(lua_State *L)
int i;
wdCanvasGetVectorTextBounds(cdlua_checkcanvas(L, 1), s, x, y, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);