summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-12-11 18:14:16 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-12-11 18:49:26 +0100
commitbc9cb23ed73c7b85210c8948135773b973fc2927 (patch)
tree4fe25dbbcf490865ffe58c625399fbe2b29c3c4b /config.c
parentdf8c8e299363a5e93c1436cf8d8ca54c57694256 (diff)
downloadvdr-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 'config.c')
-rw-r--r--config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.c b/config.c
index af8661b..3521615 100644
--- a/config.c
+++ b/config.c
@@ -462,6 +462,16 @@ bool cDesignerConfig::OsdSizeChanged(void) {
return false;
}
+// If softhddevice is suspended, it gives the video size 0x0
+// We use this for detect a play mode change and drop the cache, because it is corrupted after being suspended
+bool cDesignerConfig::PlayModeChanged(void) {
+ if (mode_changed) {
+ mode_changed = 0;
+ return true;
+ }
+ return false;
+}
+
void cDesignerConfig::SetOSDFonts(void) {
fontFix = Setup.FontFix;
fontOsd = Setup.FontOsd;