Missing method for COLORLCD
This commit is contained in:
committed by
Raphael Coeffic
parent
4656921dea
commit
1716e24260
@@ -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())
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user