osd resolution: Add src/gui/osd_helpers.cpp

- Move switch osd resolution from COsdSetup::changeNotify() to
   COsdHelpers::changeOsdResolution()
This commit is contained in:
M. Liebmann
2017-02-28 15:02:09 +01:00
parent 1fc0186175
commit 84b2af00fb
4 changed files with 221 additions and 0 deletions

29
src/gui/osd_helpers.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef __osd_helpers__
#define __osd_helpers__
enum {
OSDMODE_720 = 0,
OSDMODE_1080 = 1
};
class COsdHelpers
{
private:
public:
COsdHelpers();
~COsdHelpers();
static COsdHelpers* getInstance();
int g_settings_osd_resolution_save;
void changeOsdResolution(uint32_t mode, bool automode=false, bool forceOsdReset=false);
void resetOsdResolution(int newSystem);
int isVideoSystem1080(int res);
int getVideoSystem();
uint32_t getOsdResolution();
};
#endif //__osd_helpers__