- glcd: make glcd_show_logo themable

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-07-11 00:22:41 +02:00
committed by Thilo Graf
parent 402970d3d9
commit 7447030ec9
14 changed files with 25 additions and 20 deletions

View File

@@ -690,7 +690,6 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.glcd_mirror_osd = configfile.getInt32("glcd_mirror_osd", 0);
g_settings.glcd_mirror_video = configfile.getInt32("glcd_mirror_video", 0);
g_settings.glcd_show_logo = configfile.getInt32("glcd_show_logo", 1);
g_settings.glcd_brightness = configfile.getInt32("glcd_brightness", GLCD_DEFAULT_BRIGHTNESS);
g_settings.glcd_brightness_dim = configfile.getInt32("glcd_brightness_dim", GLCD_DEFAULT_BRIGHTNESS_DIM);
g_settings.glcd_brightness_standby = configfile.getInt32("glcd_brightness_standby", GLCD_DEFAULT_BRIGHTNESS_STANDBY);
@@ -1343,12 +1342,10 @@ void CNeutrinoApp::upgradeSetup(const char * fname)
g_settings.timer_followscreenings = 2 /*always*/;
configfile.deleteKey("recording_tevents");
}
if (g_settings.version_pseudo < "20200615000000")
if (g_settings.version_pseudo < "20170711000000")
{
#ifdef ENABLE_GRAPHLCD
// disable analog clock in standby mode
if (g_settings.glcd_time_in_standby > 1)
g_settings.glcd_time_in_standby = 1;
configfile.deleteKey("glcd_show_logo");
#endif
}
@@ -1617,7 +1614,6 @@ void CNeutrinoApp::saveSetup(const char * fname)
configfile.setInt32("glcd_standby_weather", g_settings.glcd_standby_weather);
configfile.setInt32("glcd_mirror_osd", g_settings.glcd_mirror_osd);
configfile.setInt32("glcd_mirror_video", g_settings.glcd_mirror_video);
configfile.setInt32("glcd_show_logo", g_settings.glcd_show_logo);
configfile.setInt32("glcd_brightness", g_settings.glcd_brightness);
configfile.setInt32("glcd_brightness_dim", g_settings.glcd_brightness_dim);
configfile.setInt32("glcd_brightness_standby", g_settings.glcd_brightness_standby);