From 5280076b0abb856b311352337789ab6e950f198e Mon Sep 17 00:00:00 2001 From: 3djc Date: Fri, 8 Nov 2019 20:37:31 +0100 Subject: [PATCH] Better with the switch displayed ! --- radio/src/gui/colorlcd/switch_warn_dialog.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/radio/src/gui/colorlcd/switch_warn_dialog.cpp b/radio/src/gui/colorlcd/switch_warn_dialog.cpp index 81bb8675f..fbe08eb5f 100644 --- a/radio/src/gui/colorlcd/switch_warn_dialog.cpp +++ b/radio/src/gui/colorlcd/switch_warn_dialog.cpp @@ -80,12 +80,8 @@ void SwitchWarnDialog::paint(BitmapBuffer * dc) unsigned int state = ((g_model.switchWarningState >> (3 * i)) & 0x07); if (state && state - 1 != ((switches_states >> (i * 2)) & 0x03)) { if (y < LCD_H) { -#if LCD_W > LCD_H x = drawSwitch(dc, x, y, SWSRC_FIRST_SWITCH + i * 3 + state - 1, FONT(BOLD)); x += 5; -#else - y += 35; -#endif } else { dc->drawText(x, y, "...", FONT(BOLD));