From 636be7fa8493189a135576a71c8c18d6e1701ebc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 17 Dec 2012 12:46:09 +0400 Subject: [PATCH] gui/videosettings.cpp: fix video mode switch ask, fix menu redraw after video mode switch --- src/gui/videosettings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/videosettings.cpp b/src/gui/videosettings.cpp index f59e02752..6aab8b977 100644 --- a/src/gui/videosettings.cpp +++ b/src/gui/videosettings.cpp @@ -300,9 +300,9 @@ void CVideoSettings::setupVideoSystem(bool do_ask) g_settings.video_Mode = prev_video_mode; videoDecoder->SetVideoSystem(g_settings.video_Mode); } + else + prev_video_mode = g_settings.video_Mode; } - else - prev_video_mode = g_settings.video_Mode; } } @@ -343,6 +343,7 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /* else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_VIDEOMODE)) { setupVideoSystem(true/*ask*/); + return true; } #if 0 else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_CONTRAST))