mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
[Horus] GUI continued
This commit is contained in:
parent
83887f1532
commit
2b9242fac2
70 changed files with 1770 additions and 1474 deletions
|
@ -355,11 +355,11 @@ static int luaLcdDrawPixmap(lua_State *L)
|
|||
|
||||
#if defined(PCBTARANIS)
|
||||
uint8_t bitmap[BITMAP_BUFFER_SIZE(LCD_W/2, LCD_H)]; // width max is LCD_W/2 pixels for saving stack and avoid a malloc here
|
||||
if (bmpLoad(bitmap, filename, LCD_W/2, LCD_H)) {
|
||||
if (lcdLoadBitmap(bitmap, filename, LCD_W/2, LCD_H)) {
|
||||
lcdDrawBitmap(x, y, bitmap);
|
||||
}
|
||||
#else
|
||||
uint8_t * bitmap = bmpLoad(filename);
|
||||
uint8_t * bitmap = lcdLoadBitmap(filename);
|
||||
if (bitmap) {
|
||||
lcdDrawBitmap(x, y, bitmap);
|
||||
free(bitmap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue