mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
l4l: remove brightness_standby, use brightness only
This commit is contained in:
@@ -68,7 +68,6 @@ extern CPictureViewer *g_PicViewer;
|
||||
#define LOGO_DUMMY ICONSDIR "/blank.png"
|
||||
|
||||
#define BRIGHTNESS LCD_DATADIR "brightness"
|
||||
#define BRIGHTNESS_STANDBY LCD_DATADIR "brightness_standby"
|
||||
#define RESOLUTION LCD_DATADIR "resolution"
|
||||
#define ASPECTRATIO LCD_DATADIR "aspectratio"
|
||||
#define VIDEOTEXT LCD_DATADIR "videotext"
|
||||
@@ -267,7 +266,6 @@ void CLCD4l::Init()
|
||||
m_ParseID = 0;
|
||||
|
||||
m_Brightness = -1;
|
||||
m_Brightness_standby = -1;
|
||||
m_Resolution = "n/a";
|
||||
m_AspectRatio = "n/a";
|
||||
m_Videotext = -1;
|
||||
@@ -445,13 +443,6 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
m_Brightness = Brightness;
|
||||
}
|
||||
|
||||
int Brightness_standby = g_settings.lcd4l_brightness_standby;
|
||||
if (m_Brightness_standby != Brightness_standby)
|
||||
{
|
||||
WriteFile(BRIGHTNESS_STANDBY, to_string(Brightness_standby));
|
||||
m_Brightness_standby = Brightness_standby;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
int x_res, y_res, framerate;
|
||||
@@ -845,6 +836,11 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
|
||||
if (m_Layout.compare(Layout))
|
||||
{
|
||||
if (!ModeStandby)
|
||||
WriteFile(BRIGHTNESS, to_string(g_settings.lcd4l_brightness));
|
||||
else
|
||||
WriteFile(BRIGHTNESS, to_string(g_settings.lcd4l_brightness_standby));
|
||||
|
||||
WriteFile(LAYOUT, Layout);
|
||||
m_Layout = Layout;
|
||||
if (!firstRun)
|
||||
|
Reference in New Issue
Block a user