Files
neutrino/src/gui/osd_helpers.h
Thilo Graf 86f0798f63 gui/osd_helpers.cpp/h: add signal OnAfterChangeResolution
Adds possibility to use any methods after changed resolution without
any changes on COsdHelpers class.
Implementation is possible directly from other objects that need this.
2019-04-06 23:58:17 +02:00

33 lines
619 B
C++

#ifndef __osd_helpers__
#define __osd_helpers__
#include <sigc++/signal.h>
enum {
OSDMODE_720 = 0,
OSDMODE_1080 = 1
};
class COsdHelpers : public sigc::trackable
{
private:
public:
COsdHelpers();
~COsdHelpers();
static COsdHelpers* getInstance();
int g_settings_osd_resolution_save;
void changeOsdResolution(uint32_t mode, bool automode=false, bool forceOsdReset=false);
int isVideoSystem1080(int res);
int getVideoSystem();
uint32_t getOsdResolution();
int setVideoSystem(int newSystem, bool remember = true);
sigc::signal<void> OnAfterChangeResolution;
};
#endif //__osd_helpers__