mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
lcd4linux update, add brightness settings
Origin commit data
------------------
Branch: ni/coolstream
Commit: 74f12564e1
Author: max_10 <max_10@gmx.de>
Date: 2018-09-10 (Mon, 10 Sep 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -64,6 +64,8 @@ extern cVideo *videoDecoder;
|
||||
|
||||
#define LOGO_DUMMY LCD_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"
|
||||
@@ -189,6 +191,8 @@ void CLCD4l::Init()
|
||||
{
|
||||
m_ParseID = 0;
|
||||
|
||||
m_Brightness = -1;
|
||||
m_Brightness_standby = -1;
|
||||
m_Resolution = "n/a";
|
||||
m_AspectRatio = "n/a";
|
||||
m_Videotext = -1;
|
||||
@@ -311,6 +315,26 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
int Brightness = g_settings.lcd4l_brightness;
|
||||
if (m_Brightness != Brightness)
|
||||
{
|
||||
WriteFile(BRIGHTNESS, to_string(Brightness));
|
||||
m_Brightness = Brightness;
|
||||
lcd4linux(false);
|
||||
lcd4linux(true);
|
||||
}
|
||||
|
||||
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;
|
||||
lcd4linux(false);
|
||||
lcd4linux(true);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
int x_res, y_res, framerate;
|
||||
videoDecoder->getPictureInfo(x_res, y_res, framerate);
|
||||
|
||||
|
Reference in New Issue
Block a user