diff options
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) { |