auto video mode fix; enable key repeat for number and string choosers menu items

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: e1097960b0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-08-19 (Thu, 19 Aug 2010)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2010-08-19 18:15:37 +00:00
parent 4c5ede6d49
commit 772398999e
9 changed files with 86 additions and 8 deletions

View File

@@ -1026,8 +1026,17 @@ printf("CAllUsalsNotifier::changeNotify: %s\n", onoff ? "ON" : "OFF");
return true;
}
extern CMenuOptionChooser::keyval_ext VIDEOMENU_VIDEOMODE_OPTIONS[];
bool CAutoModeNotifier::changeNotify(const neutrino_locale_t /*OptionName*/, void * /* data */)
{
videoDecoder->SetAutoModes(g_settings.enabled_video_modes);
int i;
int modes[VIDEO_STD_MAX+1];
memset(modes, 0, sizeof(int)*VIDEO_STD_MAX+1);
for(i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++) {
modes[VIDEOMENU_VIDEOMODE_OPTIONS[i].key] = g_settings.enabled_video_modes[i];
}
videoDecoder->SetAutoModes(modes);
return true;
}