gui/videosettings.cpp: split format key modes and auto-modes on apollo,

disable broken 14:9 pan&scan on apollo
This commit is contained in:
[CST] Focus
2014-12-04 19:21:14 +03:00
parent 4975b33dfd
commit 68e240b4e7
7 changed files with 44 additions and 7 deletions

View File

@@ -398,6 +398,11 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.enabled_video_modes[3] = 1; // 720p 50Hz
g_settings.enabled_video_modes[4] = 1; // 1080i 50Hz
for(int i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++) {
sprintf(cfg_key, "enabled_auto_mode_%d", i);
g_settings.enabled_auto_modes[i] = configfile.getInt32(cfg_key, 1);
}
g_settings.cpufreq = configfile.getInt32("cpufreq", 0);
g_settings.standby_cpufreq = configfile.getInt32("standby_cpufreq", 100);
g_settings.rounded_corners = configfile.getInt32("rounded_corners", 1);
@@ -936,6 +941,10 @@ void CNeutrinoApp::saveSetup(const char * fname)
sprintf(cfg_key, "enabled_video_mode_%d", i);
configfile.setInt32(cfg_key, g_settings.enabled_video_modes[i]);
}
for(int i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++) {
sprintf(cfg_key, "enabled_auto_mode_%d", i);
configfile.setInt32(cfg_key, g_settings.enabled_auto_modes[i]);
}
configfile.setInt32( "cpufreq", g_settings.cpufreq);
configfile.setInt32( "standby_cpufreq", g_settings.standby_cpufreq);
configfile.setInt32("rounded_corners", g_settings.rounded_corners);