mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Lua changes needed for the wizard
This commit is contained in:
parent
fbe6021fbd
commit
857aca7e39
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ static int luaLcdDrawPixmap(lua_State *L)
|
|||
const pm_char * error = bmpLoad(bitmap, filename, LCD_W, LCD_H);
|
||||
if (bitmap && !error) {
|
||||
lcd_bmp(x, y, bitmap);
|
||||
// free(bitmap);
|
||||
free(bitmap);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ static int luaLcdDrawScreenTitle(lua_State *L)
|
|||
int idx = luaL_checkinteger(L, 2);
|
||||
int cnt = luaL_checkinteger(L, 3);
|
||||
|
||||
displayScreenIndex(idx-1, cnt, 0);
|
||||
if (cnt) displayScreenIndex(idx-1, cnt, 0);
|
||||
lcd_filled_rect(0, 0, LCD_W, FH, SOLID, FILL_WHITE|GREY_DEFAULT);
|
||||
title(str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue