From cd24e503a01a3853b7de44fc7bafab8431ee2c4e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 31 May 2012 18:16:17 +0400 Subject: [PATCH] gui/videosettings.cpp: comment unused code, fix CVideoSettings::changeNotify - no need to repaint menu --- src/gui/videosettings.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/videosettings.cpp b/src/gui/videosettings.cpp index ce18166f6..9b2827e6a 100644 --- a/src/gui/videosettings.cpp +++ b/src/gui/videosettings.cpp @@ -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; }