[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:
parent
ad4b417afb
commit
119e679e32
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user