mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
gui/videosettings.cpp: split format key modes and auto-modes on apollo,
disable broken 14:9 pan&scan on apollo
Origin commit data
------------------
Branch: ni/coolstream
Commit: 68e240b4e7
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-12-04 (Thu, 04 Dec 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user