Full lcd/crt presets, for testing

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@522 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 44ea2e67f8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-03-21 (Sun, 21 Mar 2010)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2010-03-21 15:01:13 +00:00
parent 357b981b05
commit b77951e864
6 changed files with 82 additions and 20 deletions

View File

@@ -990,3 +990,16 @@ bool CCpuFreqNotifier::changeNotify(const neutrino_locale_t, void * data)
cpuFreq->SetCpuFreq(freq);
return true;
}
bool CScreePresetNotifier::changeNotify(const neutrino_locale_t OptionName, void * data)
{
int preset = * (int *) data;
printf("CScreePresetNotifier::changeNotify preset %d (setting %d)\n", preset, g_settings.screen_preset);
g_settings.screen_StartX = g_settings.screen_preset ? g_settings.screen_StartX_lcd : g_settings.screen_StartX_crt;
g_settings.screen_StartY = g_settings.screen_preset ? g_settings.screen_StartY_lcd : g_settings.screen_StartY_crt;
g_settings.screen_EndX = g_settings.screen_preset ? g_settings.screen_EndX_lcd : g_settings.screen_EndX_crt;
g_settings.screen_EndY = g_settings.screen_preset ? g_settings.screen_EndY_lcd : g_settings.screen_EndY_crt;
CFrameBuffer::getInstance()->Clear();
return true;
}