mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
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
This commit is contained in:
@@ -1220,6 +1220,12 @@ typedef enum {
|
||||
LOCALE_VIDEOMENU_DBDR_DEBLOCK,
|
||||
LOCALE_VIDEOMENU_DBDR_BOTH,
|
||||
LOCALE_VIDEOMENU_ENABLED_MODES,
|
||||
LOCALE_VIDEOMENU_ADJUST,
|
||||
LOCALE_VIDEOMENU_CONTRAST,
|
||||
LOCALE_VIDEOMENU_BRIGHTNESS,
|
||||
LOCALE_VIDEOMENU_SHARPNESS,
|
||||
LOCALE_VIDEOMENU_SATURATION,
|
||||
LOCALE_VIDEOMENU_HUE,
|
||||
LOCALE_ZAPIT_SCANTYPE,
|
||||
LOCALE_ZAPIT_SCANTYPE_ALL,
|
||||
LOCALE_ZAPIT_SCANTYPE_RADIO,
|
||||
|
@@ -1220,6 +1220,12 @@ const char *locale_real_names[] = {
|
||||
"videomenu.dbdr_deblock",
|
||||
"videomenu.dbdr_both",
|
||||
"videomenu.enabled_modes",
|
||||
"videomenu.adjust",
|
||||
"videomenu.contrast",
|
||||
"videomenu.brightness",
|
||||
"videomenu.sharpness",
|
||||
"videomenu.saturation",
|
||||
"videomenu.hue",
|
||||
"zapit.scantype",
|
||||
"zapit.scantype.all",
|
||||
"zapit.scantype.radio",
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 12 /* warning, must be same as VIDEO_STD_MAX */
|
||||
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 12
|
||||
|
||||
struct SNeutrinoSettings
|
||||
{
|
||||
|
Reference in New Issue
Block a user