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.


Origin commit data
------------------
Commit: cfdd351ceb
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-07 (Sun, 07 Apr 2019)
This commit is contained in:
2019-04-07 00:54:12 +02:00
committed by vanhofen
parent 4a8a65603b
commit 9bcd1bbde9
2 changed files with 5 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ void COsdHelpers::changeOsdResolution(uint32_t mode, bool automode/*=false*/, bo
CNeutrinoApp::getInstance()->StartSubtitles();
}
}
OnAfterChangeResolution();
}
#else
void COsdHelpers::changeOsdResolution(uint32_t, bool, bool)

View File

@@ -2,12 +2,14 @@
#ifndef __osd_helpers__
#define __osd_helpers__
#include <sigc++/signal.h>
enum {
OSDMODE_720 = 0,
OSDMODE_1080 = 1
};
class COsdHelpers
class COsdHelpers : public sigc::trackable
{
private:
@@ -23,6 +25,7 @@ class COsdHelpers
int getVideoSystem();
uint32_t getOsdResolution();
int setVideoSystem(int newSystem, bool remember = true);
sigc::signal<void> OnAfterChangeResolution;
};