Files
recycled-ni-neutrino/src/gui/osd_helpers.h
Thilo Graf c7333619e5 COsdHelpers: add signal OnBeforeChangeResolution
Origin commit data
------------------
Branch: ni/coolstream
Commit: 96844a0db0
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-11-28 (Thu, 28 Nov 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-11-28 21:46:38 +01:00

34 lines
666 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;
sigc::signal<void> OnBeforeChangeResolution;
};
#endif //__osd_helpers__