From c20fd74b3c2aa6a402eb28f579a58cf71053b9a1 Mon Sep 17 00:00:00 2001 From: jfrickmann Date: Sat, 11 Sep 2021 07:47:19 -0400 Subject: [PATCH] Removed full screen message "Press [RTN] long to exit" --- radio/src/gui/colorlcd/widget.cpp | 7 ------- radio/src/gui/colorlcd/widget.h | 1 - 2 files changed, 8 deletions(-) diff --git a/radio/src/gui/colorlcd/widget.cpp b/radio/src/gui/colorlcd/widget.cpp index 0b391a69e..776869364 100644 --- a/radio/src/gui/colorlcd/widget.cpp +++ b/radio/src/gui/colorlcd/widget.cpp @@ -30,7 +30,6 @@ #endif constexpr uint32_t WIDGET_FOCUS_TIMEOUT = 10*1000; // 10 seconds -constexpr uint32_t FULLSCREEN_HINT_DELAY = 5*1000; // 5 seconds static void openWidgetMenu(Widget * parent) { @@ -125,11 +124,6 @@ void Widget::paint(BitmapBuffer * dc) } dc->drawRect(0, 0, width(), height(), 2, STASHED, COLOR_THEME_FOCUS); } - - if (fullscreen && (RTOS_GET_MS() - fsStartedTS < FULLSCREEN_HINT_DELAY)) { - dc->drawText(width() / 2, height() / 2, "Press [RTN] long to exit", - FONT(XL) | CENTERED | VCENTERED | COLOR_THEME_PRIMARY3); - } } #if defined(HARDWARE_KEYS) @@ -186,7 +180,6 @@ void Widget::setFullscreen(bool fullscreen) setRect(parent->getRect()); setLeft(parent->getScrollPositionX()); this->fullscreen = true; - fsStartedTS = RTOS_GET_MS(); bringToTop(); } } diff --git a/radio/src/gui/colorlcd/widget.h b/radio/src/gui/colorlcd/widget.h index eb76acba5..cdc3cab74 100644 --- a/radio/src/gui/colorlcd/widget.h +++ b/radio/src/gui/colorlcd/widget.h @@ -111,7 +111,6 @@ class Widget : public Button PersistentData * persistentData; uint32_t focusGainedTS = 0; bool fullscreen = false; - uint32_t fsStartedTS = 0; }; void registerWidget(const WidgetFactory * factory);