mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
gui/videosettings.cpp: fix video mode switch ask,
fix menu redraw after video mode switch
This commit is contained in:
@@ -300,11 +300,11 @@ void CVideoSettings::setupVideoSystem(bool do_ask)
|
|||||||
g_settings.video_Mode = prev_video_mode;
|
g_settings.video_Mode = prev_video_mode;
|
||||||
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
videoDecoder->SetVideoSystem(g_settings.video_Mode);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
prev_video_mode = g_settings.video_Mode;
|
prev_video_mode = g_settings.video_Mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /* data */)
|
bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /* data */)
|
||||||
{
|
{
|
||||||
@@ -343,6 +343,7 @@ bool CVideoSettings::changeNotify(const neutrino_locale_t OptionName, void * /*
|
|||||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_VIDEOMODE))
|
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_VIDEOMODE))
|
||||||
{
|
{
|
||||||
setupVideoSystem(true/*ask*/);
|
setupVideoSystem(true/*ask*/);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_CONTRAST))
|
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_CONTRAST))
|
||||||
|
Reference in New Issue
Block a user