summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
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;