From 85e581c2c556d55d18e7e43bc25d0fd9b242a732 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Mon, 7 Nov 2022 21:22:46 +0100 Subject: [PATCH] - glcdsetup: add missing oled_width/heigth Signed-off-by: Thilo Graf --- 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);