summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruid228608 <uid228608>2010-08-05 17:45:23 +0000
committeruid228608 <uid228608>2010-08-05 17:45:23 +0000
commit7709d543806354bf7fbe405f7761830e463d9bc3 (patch)
tree108a2425a5834de08e0c22fd3744af395c431fd3 /src
parentf25212341cad459f4f8020b6c2d61dd5a61030dd (diff)
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/lua5/cdlua5_canvas.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua5/cdlua5_canvas.c b/src/lua5/cdlua5_canvas.c
index 0ea9b1b..d6e9849 100644
--- a/src/lua5/cdlua5_canvas.c
+++ b/src/lua5/cdlua5_canvas.c
@@ -376,6 +376,12 @@ static int cdlua5_transform(lua_State *L)
double matrix[6];
int i;
+ if (lua_isnil(L, 2))
+ {
+ cdCanvasTransform(cdlua_checkcanvas(L, 1), NULL);
+ return 0;
+ }
+
if (!lua_istable(L, 2))
luaL_argerror(L, 2, "invalid matrix, must be a table");