Removed necessity for lcd allowance in lcd.setColor() and lcd.getColor()
This commit is contained in:
@@ -783,9 +783,6 @@ Set a color for specific area
|
|||||||
*/
|
*/
|
||||||
static int luaLcdSetColor(lua_State *L)
|
static int luaLcdSetColor(lua_State *L)
|
||||||
{
|
{
|
||||||
if (!luaLcdAllowed)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
|
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
|
||||||
unsigned int color = luaL_checkunsigned(L, 2);
|
unsigned int color = luaL_checkunsigned(L, 2);
|
||||||
|
|
||||||
@@ -806,9 +803,6 @@ Get the color for specific area : see lcd.setColor for area list
|
|||||||
|
|
||||||
static int luaLcdGetColor(lua_State *L)
|
static int luaLcdGetColor(lua_State *L)
|
||||||
{
|
{
|
||||||
if (!luaLcdAllowed)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
|
unsigned int index = luaL_checkunsigned(L, 1) >> 16;
|
||||||
lua_pushunsigned(L, lcdColorTable[index]);
|
lua_pushunsigned(L, lcdColorTable[index]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user