mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
osd resolution: Add src/gui/osd_helpers.cpp
- Move switch osd resolution from COsdSetup::changeNotify() to
COsdHelpers::changeOsdResolution()
Origin commit data
------------------
Commit: 84b2af00fb
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-28 (Tue, 28 Feb 2017)
Origin message was:
------------------
osd resolution: Add src/gui/osd_helpers.cpp
- Move switch osd resolution from COsdSetup::changeNotify() to
COsdHelpers::changeOsdResolution()
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <neutrino_menue.h>
|
||||
|
||||
#include "osd_setup.h"
|
||||
#include "osd_helpers.h"
|
||||
#include "themes.h"
|
||||
#include "screensetup.h"
|
||||
#include "osdlang_setup.h"
|
||||
@@ -1389,6 +1390,12 @@ bool COsdSetup::changeNotify(const neutrino_locale_t OptionName, void * data)
|
||||
#ifdef ENABLE_CHANGE_OSD_RESOLUTION
|
||||
else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_COLORMENU_OSD_RESOLUTION))
|
||||
{
|
||||
if (frameBuffer->osd_resolutions.empty())
|
||||
return true;
|
||||
osd_menu->hide();
|
||||
uint32_t osd_mode = (uint32_t)*(int*)data;
|
||||
COsdHelpers::getInstance()->changeOsdResolution(osd_mode, osd_mode);
|
||||
#if 0
|
||||
if (frameBuffer->fullHdAvailable()) {
|
||||
if (frameBuffer->osd_resolutions.empty())
|
||||
return true;
|
||||
@@ -1418,6 +1425,7 @@ bool COsdSetup::changeNotify(const neutrino_locale_t OptionName, void * data)
|
||||
g_InfoViewer->ResetModules();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user