1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-18 05:45:21 +03:00

Bsongis/lua interpreter added on x7d (#3999)

* [X7D] Lua option added (only standalone scripts)

* [X7D] Compilation fix

* [X7D] Compilation fix

* [X7D] Compilation fix

* [X7D] Compilation fix
This commit is contained in:
Bertrand Songis 2016-11-10 21:41:16 +01:00 committed by GitHub
parent 35571ad4d1
commit d58244ebde
23 changed files with 174 additions and 120 deletions

View file

@ -423,7 +423,7 @@ static int luaLcdDrawBitmap(lua_State *L)
return 0;
}
#else
#elif LCD_DEPTH > 1
/*luadoc
@function lcd.drawPixmap(x, y, name)
@ -555,7 +555,7 @@ static int luaLcdDrawGauge(lua_State *L)
}
#if !defined(COLORLCD)
#if LCD_DEPTH > 1 && !defined(COLORLCD)
/*luadoc
@function lcd.drawScreenTitle(title, page, pages)
@ -587,7 +587,7 @@ static int luaLcdDrawScreenTitle(lua_State *L)
}
#endif
#if !defined(COLORLCD)
#if LCD_DEPTH > 1 && !defined(COLORLCD)
/*luadoc
@function lcd.drawCombobox(x, y, w, list, idx [, flags])
@ -761,7 +761,7 @@ const luaL_Reg lcdLib[] = {
{ "drawBitmap", luaLcdDrawBitmap },
{ "setColor", luaLcdSetColor },
{ "RGB", luaRGB },
#else
#elif LCD_DEPTH > 1
{ "getLastPos", luaLcdGetLastPos },
{ "drawPixmap", luaLcdDrawPixmap },
{ "drawScreenTitle", luaLcdDrawScreenTitle },