mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
COsdSetup: add slot to ensure clean up icon cache on changed resolution.
Some old icon data makes no sense with changed resolution. In some cases it could happens that no icons are to see on screen after changed resolution. This should fix this,
This commit is contained in:
@@ -668,6 +668,7 @@ int COsdSetup::showOsdSetup()
|
|||||||
COsdHelpers::getInstance()->isVideoSystem1080(videoSystem) &&
|
COsdHelpers::getInstance()->isVideoSystem1080(videoSystem) &&
|
||||||
(g_settings.video_Mode != VIDEO_STD_AUTO));
|
(g_settings.video_Mode != VIDEO_STD_AUTO));
|
||||||
CMenuOptionChooser * osd_res = new CMenuOptionChooser(LOCALE_COLORMENU_OSD_RESOLUTION, &g_settings.osd_resolution, kext, resCount, enable, this);
|
CMenuOptionChooser * osd_res = new CMenuOptionChooser(LOCALE_COLORMENU_OSD_RESOLUTION, &g_settings.osd_resolution, kext, resCount, enable, this);
|
||||||
|
osd_res->OnAfterChangeOption.connect(sigc::mem_fun(frameBuffer->getInstance(), &CFrameBuffer::clearIconCache));
|
||||||
osd_res->setHint("", LOCALE_MENU_HINT_OSD_RESOLUTION);
|
osd_res->setHint("", LOCALE_MENU_HINT_OSD_RESOLUTION);
|
||||||
osd_menu->addItem(osd_res);
|
osd_menu->addItem(osd_res);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user