diff options
author | scuri <scuri> | 2008-10-22 20:00:21 +0000 |
---|---|---|
committer | scuri <scuri> | 2008-10-22 20:00:21 +0000 |
commit | a730ecc4340493f3e341c744617cdd58aa60b296 (patch) | |
tree | 4bf1d2745e4436957a773191dce166dcdc458dcd /src | |
parent | 4ef58b73dab6065c5b39a3f89ed2981f9a26a9d5 (diff) |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/lua5/cdlua5_canvas.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua5/cdlua5_canvas.c b/src/lua5/cdlua5_canvas.c index 8800123..4d38cbf 100644 --- a/src/lua5/cdlua5_canvas.c +++ b/src/lua5/cdlua5_canvas.c @@ -565,7 +565,7 @@ static int wdlua5_canvas2world(lua_State *L) \***************************************************************************/ static int cdlua5_foreground(lua_State *L) { - long int color_i = cdlua_checkcolor(L, 1); + long int color_i = cdlua_checkcolor(L, 2); color_i = cdCanvasForeground(cdlua_checkcanvas(L, 1), color_i); lua_pushlightuserdata(L, (void*) color_i); return 1; @@ -573,7 +573,7 @@ static int cdlua5_foreground(lua_State *L) static int cdlua5_setforeground(lua_State *L) { - long int color_i = cdlua_checkcolor(L, 1); + long int color_i = cdlua_checkcolor(L, 2); cdCanvasSetForeground(cdlua_checkcanvas(L, 1), color_i); return 0; } @@ -583,7 +583,7 @@ static int cdlua5_setforeground(lua_State *L) \***************************************************************************/ static int cdlua5_background(lua_State *L) { - long int color_i = cdlua_checkcolor(L, 1); + long int color_i = cdlua_checkcolor(L, 2); color_i = cdCanvasBackground(cdlua_checkcanvas(L, 1), color_i); lua_pushlightuserdata(L, (void*) color_i); return 1; @@ -591,7 +591,7 @@ static int cdlua5_background(lua_State *L) static int cdlua5_setbackground(lua_State *L) { - long int color_i = cdlua_checkcolor(L, 1); + long int color_i = cdlua_checkcolor(L, 2); cdCanvasSetBackground(cdlua_checkcanvas(L, 1), color_i); return 0; } |