From 487d3713149bd15f3fc75e6d1c17b48fcbcf665b Mon Sep 17 00:00:00 2001 From: eshifri Date: Sat, 19 Jun 2021 22:53:23 -0700 Subject: [PATCH] Base class paint should be called prior. --- radio/src/gui/colorlcd/layouts/layout2x4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/layouts/layout2x4.cpp b/radio/src/gui/colorlcd/layouts/layout2x4.cpp index 17c2bc0e7..7214c8535 100644 --- a/radio/src/gui/colorlcd/layouts/layout2x4.cpp +++ b/radio/src/gui/colorlcd/layouts/layout2x4.cpp @@ -85,6 +85,7 @@ class Layout2x4: public Layout void Layout2x4::paint(BitmapBuffer* dc) { + Layout::paint(dc); rect_t fullScreen = Layout::getMainZone(); fullScreen.w /= 2; if (getOptionValue(OPTION_PANEL1_BACKGROUND)->boolValue) { @@ -99,7 +100,6 @@ void Layout2x4::paint(BitmapBuffer* dc) dc->drawSolidFilledRect(fullScreen.x, fullScreen.y, fullScreen.w, fullScreen.h, CUSTOM_COLOR); } - Layout::paint(dc); } BaseLayoutFactory layout2x4("Layout2x4", "2 x 4", LBM_LAYOUT_2x4, OPTIONS_LAYOUT_2x4);