mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
lcd4l-setup: use new GetMaxBrightness() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6d3abd99aa
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-02 (Wed, 02 Jan 2019)
Origin message was:
------------------
- lcd4l-setup: use new GetMaxBrightness() function
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Copyright (C) 2012 'defans'
|
||||
Homepage: http://www.bluepeercrew.us/
|
||||
|
||||
Copyright (C) 2012-2016 'vanhofen'
|
||||
Copyright (C) 2012-2018 'vanhofen'
|
||||
Homepage: http://www.neutrino-images.de/
|
||||
|
||||
Modded (C) 2016 'TangoCash'
|
||||
@@ -171,17 +171,11 @@ int CLCD4lSetup::show()
|
||||
mc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_SKIN_RADIO);
|
||||
lcd4lSetup->addItem(mc);
|
||||
|
||||
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 = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS, (int *)&temp_lcd4l_brightness, true, 1, LCD4l->GetMaxBrightness(), this);
|
||||
nc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_BRIGHTNESS);
|
||||
lcd4lSetup->addItem(nc);
|
||||
|
||||
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);
|
||||
nc = new CMenuOptionNumberChooser(LOCALE_LCD4L_BRIGHTNESS_STANDBY, (int *)&g_settings.lcd4l_brightness_standby, true, 1, LCD4l->GetMaxBrightness(), this);
|
||||
nc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_BRIGHTNESS_STANDBY);
|
||||
lcd4lSetup->addItem(nc);
|
||||
|
||||
|
Reference in New Issue
Block a user