From 15a5b6e4cb21236d38e958961c82f15fe3e5e37f Mon Sep 17 00:00:00 2001 From: eshifri Date: Sun, 20 Jun 2021 07:46:35 -0700 Subject: [PATCH] Removed SetLcd --- radio/src/gui/colorlcd/layouts/layout2x4.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/radio/src/gui/colorlcd/layouts/layout2x4.cpp b/radio/src/gui/colorlcd/layouts/layout2x4.cpp index 7214c8535..66bc3c186 100644 --- a/radio/src/gui/colorlcd/layouts/layout2x4.cpp +++ b/radio/src/gui/colorlcd/layouts/layout2x4.cpp @@ -89,16 +89,14 @@ void Layout2x4::paint(BitmapBuffer* dc) rect_t fullScreen = Layout::getMainZone(); fullScreen.w /= 2; if (getOptionValue(OPTION_PANEL1_BACKGROUND)->boolValue) { - lcdSetColor(getOptionValue(OPTION_PANEL1_COLOR)->unsignedValue); dc->drawSolidFilledRect(fullScreen.x, fullScreen.y, fullScreen.w, - fullScreen.h, CUSTOM_COLOR); + fullScreen.h, COLOR2FLAGS(getOptionValue(OPTION_PANEL1_COLOR)->unsignedValue)); } if (getOptionValue(OPTION_PANEL2_BACKGROUND)->boolValue) { fullScreen.x += fullScreen.w; - lcdSetColor(getOptionValue(OPTION_PANEL2_COLOR)->unsignedValue); dc->drawSolidFilledRect(fullScreen.x, fullScreen.y, fullScreen.w, - fullScreen.h, CUSTOM_COLOR); + fullScreen.h, COLOR2FLAGS(getOptionValue(OPTION_PANEL2_COLOR)->unsignedValue)); } }