summaryrefslogtreecommitdiff
path: root/src/lua5/cdlua5_active.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_active.c
parent9d336f5f284149f4e03db7db117bde276890a37f (diff)
*** empty log message ***
Diffstat (limited to 'src/lua5/cdlua5_active.c')
-rw-r--r--src/lua5/cdlua5_active.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua5/cdlua5_active.c b/src/lua5/cdlua5_active.c
index ad4398e..ca0f901 100644
--- a/src/lua5/cdlua5_active.c
+++ b/src/lua5/cdlua5_active.c
@@ -479,7 +479,7 @@ static int cdlua5_getclippoly(lua_State *L)
{
lua_pushnumber(L, n);
- lua_newtable(L);
+ lua_createtable(L, 2*n, 0);
for (i=0; i < 2*n; i++)
{
lua_pushnumber(L, i+1);
@@ -509,7 +509,7 @@ static int wdlua5_getclippoly(lua_State *L)
{
lua_pushnumber(L, n);
- lua_newtable(L);
+ lua_createtable(L, 2*n, 0);
for (i=0; i < 2*n; i++)
{
lua_pushnumber(L, i+1);
@@ -1390,7 +1390,7 @@ static int cdlua5_vectortexttransform(lua_State *L)
}
old_matrix = cdVectorTextTransform(matrix);
- lua_newtable(L);
+ lua_createtable(L, 6, 0);
for (i=0; i < 6; i++)
{
lua_pushnumber(L, old_matrix[i]);
@@ -1489,7 +1489,7 @@ static int cdlua5_vectortextbounds(lua_State *L)
int rect[8], i;
cdGetVectorTextBounds(s, x, y, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);
@@ -1510,7 +1510,7 @@ static int wdlua5_vectortextbounds(lua_State *L)
int i;
wdGetVectorTextBounds(s, x, y, rect);
- lua_newtable(L);
+ lua_createtable(L, 8, 0);
for (i=0; i < 8; i++)
{
lua_pushnumber(L, rect[i]);