use the canvas image buffer to draw libopenui, one screen operation less per draw call

This commit is contained in:
Malte Langermann
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 0844e8d480
commit daa957bb47
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -93,6 +93,7 @@ lv_color_t makeLvColor(uint32_t colorFlags)
lv_obj_t * canvas=nullptr;
static lv_color_t cbuf[LV_CANVAS_BUF_SIZE_TRUE_COLOR(LCD_W, LCD_H)] __SDRAM;
BitmapBuffer canBuf(BMP_RGB565, LCD_W, LCD_H, (uint16_t *)cbuf);
extern BitmapBuffer * lcdFront;
extern BitmapBuffer * lcd;