diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-12-11 18:14:16 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-12-11 18:49:26 +0100 |
commit | bc9cb23ed73c7b85210c8948135773b973fc2927 (patch) | |
tree | 4fe25dbbcf490865ffe58c625399fbe2b29c3c4b /skindesigner.c | |
parent | df8c8e299363a5e93c1436cf8d8ca54c57694256 (diff) | |
download | vdr-plugin-skindesigner-1.2.8.6.tar.gz vdr-plugin-skindesigner-1.2.8.6.tar.bz2 |
Refresh imgCache if OsdProvider was changed (Thanks to lnj @vdr-portal.de)1.2.8.6
Diffstat (limited to 'skindesigner.c')
-rw-r--r-- | skindesigner.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/skindesigner.c b/skindesigner.c index f88c074..0f9889a 100644 --- a/skindesigner.c +++ b/skindesigner.c @@ -7,6 +7,7 @@ */ #include <getopt.h> #include <vdr/plugin.h> +#include <vdr/device.h> #define DEFINE_CONFIG 1 #include "config.h" @@ -20,7 +21,7 @@ #endif -static const char *VERSION = "1.2.8.4"; +static const char *VERSION = "1.2.8.6"; static const char *DESCRIPTION = trNOOP("Skin Designer"); class cPluginSkinDesigner : public cPlugin, public skindesignerapi::SkindesignerAPI { @@ -175,6 +176,21 @@ void cPluginSkinDesigner::Housekeeping(void) { } void cPluginSkinDesigner::MainThreadHook(void) { + int w, h; + double a; + static int mode; + cDevice::PrimaryDevice()->GetVideoSize(w, h, a); + + if (!w && !h && !mode) { + mode = 1; + config.mode_changed = 1; + dsyslog("skindesigner: w %d h %d mode changed to %d\n", w, h, mode); + } + else if (w && h && mode) { + mode = 0; + config.mode_changed = 1; + dsyslog("skindesigner: w %d h %d mode changed to %d\n", w, h, mode); + } } cString cPluginSkinDesigner::Active(void) { |