[layers] Adapted lua bindings to draw/read in current layer (untested)

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1134 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2009-11-01 14:31:36 +00:00
parent ad4b417afb
commit 119e679e32

View File

@ -84,14 +84,14 @@ int L_GetPictureSize(lua_State* L)
int L_PutPicturePixel(lua_State* L) int L_PutPicturePixel(lua_State* L)
{ {
Pixel_in_current_screen(lua_tonumber(L, 1), lua_tonumber(L, 2), Pixel_in_current_layer(lua_tonumber(L, 1), lua_tonumber(L, 2),
lua_tonumber(L, 3),1); lua_tonumber(L, 3),1);
return 0; // no values returned for lua return 0; // no values returned for lua
} }
int L_GetPicturePixel(lua_State* L) int L_GetPicturePixel(lua_State* L)
{ {
uint8_t c = Read_pixel_from_current_screen(lua_tonumber(L, 1), uint8_t c = Read_pixel_from_current_layer(lua_tonumber(L, 1),
lua_tonumber(L, 2)); lua_tonumber(L, 2));
lua_pushinteger(L, c); lua_pushinteger(L, c);
return 1; return 1;