glcdsetup: add missing oled_width/heigth

Origin commit data
------------------
Branch: ni/coolstream
Commit: a80d00ab47
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-29 (Sat, 29 Oct 2022)

Origin message was:
------------------
- glcdsetup: add missing oled_width/heigth

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-10-29 10:52:35 +02:00
parent 4b7bf6aaac
commit f9d9d5480d

View File

@@ -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);