From 53f77b5349803a66c5bf2c46efc8ec9011336fe2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 29 Oct 2022 10:52:35 +0200 Subject: [PATCH] glcdsetup: add missing oled_width/heigth Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a80d00ab4765c58cc4fac6f757a12e6cbce00911 Author: vanhofen Date: 2022-10-29 (Sat, 29 Oct 2022) Origin message was: ------------------ - glcdsetup: add missing oled_width/heigth --- src/gui/glcdsetup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/glcdsetup.cpp b/src/gui/glcdsetup.cpp index e2f7b8e6e..c855f51a4 100644 --- a/src/gui/glcdsetup.cpp +++ b/src/gui/glcdsetup.cpp @@ -503,6 +503,8 @@ int GLCD_Menu::GLCD_Theme_Settings() int GLCD_Menu::GLCD_Theme_Position_Settings() { cGLCD::getInstance()->SetCfgMode(true); + int oled_width = cGLCD::getInstance()->lcd->Width(); + int oled_height = cGLCD::getInstance()->lcd->Height(); CMenuWidget *gtps = new CMenuWidget(LOCALE_GLCD_THEME_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_GLCD_THEME_POSITION_SETTINGS); gtps->addIntroItems(LOCALE_GLCD_POSITION_SETTINGS);