From 4989a030d59048fe4663447dc3c3ca7f287dad93 Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Sat, 8 Jan 2022 16:56:52 +0100 Subject: [PATCH] flipped DisconnecetedTip Icon gets now generated --- source/Core/Threads/GUIThread.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp index c2f3d689..a6f8efef 100644 --- a/source/Core/Threads/GUIThread.cpp +++ b/source/Core/Threads/GUIThread.cpp @@ -832,6 +832,7 @@ void showWarnings() { } uint8_t idleScreenBGF[sizeof(idleScreenBG)]; +uint8_t disconnectedTipF[sizeof(disconnectedTip)]; /* StartGUITask function */ void startGUITask(void const *argument) { (void)argument; @@ -854,6 +855,11 @@ void startGUITask(void const *argument) { idleScreenBGF[(row * 84) + x] = idleScreenBG[(row * 84) + (83 - x)]; } } + for (int row = 0; row < 2; row++) { + for (int x = 0; x < 41; x++) { + disconnectedTipF[(row * 41) + x] = disconnectedTip[(row * 41) + (40 - x)]; + } + } } getTipRawTemp(1); // reset filter OLED::setRotation(getSettingValue(SettingsOptions::OrientationMode) & 1); @@ -963,9 +969,9 @@ void startGUITask(void const *argument) { if (OLED::getRotation()) { #endif // in right handed mode we want to draw over the first part - OLED::drawArea(55, 0, 41, 16, disconnectedTipIconFlip); + OLED::drawArea(55, 0, 41, 16, disconnectedTipF); } else { - OLED::drawArea(0, 0, 41, 16, disconnectedTipIcon); + OLED::drawArea(0, 0, 41, 16, disconnectedTip); } #ifdef OLED_FLIP if (!OLED::getRotation()) { @@ -1076,9 +1082,9 @@ void startGUITask(void const *argument) { if (OLED::getRotation()) { #endif // in right handed mode we want to draw over the first part - OLED::drawArea(55, 0, 41, 16, disconnectedTipIconFlip); + OLED::drawArea(55, 0, 41, 16, disconnectedTipF); } else { - OLED::drawArea(0, 0, 41, 16, disconnectedTipIcon); + OLED::drawArea(0, 0, 41, 16, disconnectedTip); } } }