1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 04:15:26 +03:00

Lua drawBitmap on X7

This commit is contained in:
Bertrand Songis 2017-08-04 11:24:55 +02:00 committed by Kilrah
parent c82c7ee5db
commit 541aa459cf
7 changed files with 193 additions and 13 deletions

View file

@ -531,7 +531,7 @@ static int luaLcdDrawBitmap(lua_State *L)
}
return 0;
}
#elif LCD_DEPTH > 1
#else
/*luadoc
@function lcd.drawPixmap(x, y, name)
@ -873,19 +873,13 @@ const luaL_Reg lcdLib[] = {
{ "drawBitmap", luaLcdDrawBitmap },
{ "setColor", luaLcdSetColor },
{ "RGB", luaRGB },
#elif LCD_DEPTH > 1
#else
{ "getLastPos", luaLcdGetLastPos },
{ "getLastRightPos", luaLcdGetLastPos },
{ "getLastLeftPos", luaLcdGetLeftPos },
{ "drawPixmap", luaLcdDrawPixmap },
{ "drawScreenTitle", luaLcdDrawScreenTitle },
{ "drawCombobox", luaLcdDrawCombobox },
#else
{ "drawScreenTitle", luaLcdDrawScreenTitle },
{ "getLastPos", luaLcdGetLastPos },
{ "getLastRightPos", luaLcdGetLastPos },
{ "getLastLeftPos", luaLcdGetLeftPos },
{ "drawCombobox", luaLcdDrawCombobox },
#endif
{ NULL, NULL } /* sentinel */
};