gui/videosettings.cpp: comment unused code,

fix CVideoSettings::changeNotify - no need to repaint menu
This commit is contained in:
[CST] Focus
2012-05-31 18:16:17 +04:00
parent 0f146e7498
commit cd24e503a0

View File

@@ -299,12 +299,13 @@ void CVideoSettings::setupVideoSystem(bool do_ask)
}
}
bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void *data)
bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /* data */)
{
#if 0
int val = 0;
if(data)
val = * (int *) data;
#endif
if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_ANALOG_MODE))
{
videoDecoder->SetVideoMode((analog_mode_t) g_settings.analog_mode1);
@@ -336,7 +337,7 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void *data
{
setupVideoSystem(true/*ask*/);
}
#if 1
#if 0
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_CONTRAST))
{
videoDecoder->SetControl(VIDEO_CONTROL_CONTRAST, val);
@@ -358,7 +359,7 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void *data
videoDecoder->SetControl(VIDEO_CONTROL_HUE, val);
}
#endif
return true;
return false;
}