mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
osd resolution: Add src/gui/osd_helpers.cpp
- Move switch osd resolution from COsdSetup::changeNotify() to COsdHelpers::changeOsdResolution()
This commit is contained in:
29
src/gui/osd_helpers.h
Normal file
29
src/gui/osd_helpers.h
Normal 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__
|
Reference in New Issue
Block a user