From c146cfd0ebe5e2643431ffc84d3d4ee31b36dbbc Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 30 Sep 2018 22:42:49 +0200 Subject: [PATCH] lcd4l-setup: use better readable enumeration to handle g_settings.lcd4l_display_type Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1038b01b887740aa680661bf10f3677ba52e60bb Author: vanhofen Date: 2018-09-30 (Sun, 30 Sep 2018) Origin message was: ------------------ - lcd4l-setup: use better readable enumeration to handle g_settings.lcd4l_display_type ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/lcd4l_setup.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/lcd4l_setup.cpp b/src/gui/lcd4l_setup.cpp index d24913dbe..aa24efff0 100644 --- a/src/gui/lcd4l_setup.cpp +++ b/src/gui/lcd4l_setup.cpp @@ -160,15 +160,14 @@ int CLCD4lSetup::show() mc->setHint(NEUTRINO_ICON_HINT_LCD4L, LOCALE_MENU_HINT_LCD4L_SKIN_RADIO); lcd4lSetup->addItem(mc); - if (g_settings.lcd4l_display_type == 2) + if (g_settings.lcd4l_display_type == CLCD4l::SAMSUNG) nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS, (int *)&temp_lcd4l_brightness, true, 1, 10, this); else nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS, (int *)&temp_lcd4l_brightness, true, 1, 7, this); - nc->setHint(NEUTRINO_ICON_HINT_LCD4L, LOCALE_MENU_HINT_LCD4L_BRIGHTNESS); lcd4lSetup->addItem(nc); - if (g_settings.lcd4l_display_type == 2) + if (g_settings.lcd4l_display_type == CLCD4l::SAMSUNG) nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS_STANDBY, (int *)&g_settings.lcd4l_brightness_standby, true, 1, 10, this); else nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS_STANDBY, (int *)&g_settings.lcd4l_brightness_standby, true, 1, 7, this);