Missing method for COLORLCD

This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent 4656921dea
commit 1716e24260
2 changed files with 5 additions and 13 deletions
-13
View File
@@ -26,19 +26,6 @@ constexpr uint32_t STANDALONE_LUA_REFRESH = 1000 / 5; // 5Hz
uint16_t* lcdGetBackupBuffer();
// #if !defined(SIMU)
// // LUA script draw into the backup buffer
// extern uint8_t * LCD_BACKUP_FRAME_BUFFER;
// #define LUA_LCD_BUFFER ((uint16_t *)LCD_BACKUP_FRAME_BUFFER)
// #else
// extern pixel_t* simuLcdBuf;
// #define LUA_LCD_BUFFER ((uint16_t *)simuLcdBuf)
// #endif
StandaloneLuaWindow::StandaloneLuaWindow(Window* parent) :
Window(parent->getFullScreenWindow(), {0, 0, LCD_W, LCD_H}, OPAQUE),
lcdBuffer(BMP_RGB565, LCD_W, LCD_H, lcdGetBackupBuffer())
+5
View File
@@ -579,6 +579,11 @@ int lcdRestoreBackupBuffer()
return 1;
}
uint16_t* lcdGetBackupBuffer()
{
return (uint16_t*)LCD_BACKUP_FRAME_BUFFER;
}
void lcdRefresh()
{
if (currentLayer == LCD_FIRST_LAYER) {