From 06f72c3ce6e148765f32466857e8f47d35bb20e5 Mon Sep 17 00:00:00 2001 From: Malte Langermann Date: Wed, 19 Jan 2022 21:12:25 +0100 Subject: [PATCH] use the canvas image buffer to draw libopenui, one screen operation less per draw call --- radio/src/gui/colorlcd/LvglWrapper.cpp | 1 + radio/src/thirdparty/libopenui | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/LvglWrapper.cpp b/radio/src/gui/colorlcd/LvglWrapper.cpp index 94635fd16..afa93000d 100644 --- a/radio/src/gui/colorlcd/LvglWrapper.cpp +++ b/radio/src/gui/colorlcd/LvglWrapper.cpp @@ -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; diff --git a/radio/src/thirdparty/libopenui b/radio/src/thirdparty/libopenui index 2435236d7..6823e11f1 160000 --- a/radio/src/thirdparty/libopenui +++ b/radio/src/thirdparty/libopenui @@ -1 +1 @@ -Subproject commit 2435236d7186f2365a4dc0a63f1d1f846defb1d0 +Subproject commit 6823e11f1350a4384199f73625633d0897a13367