From 7c9a158f114bf2d5ec4d2913a579502d72b01ae2 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 30 Dec 2014 00:53:31 +0100 Subject: [PATCH] - screensaver: disable clock while screesaver --- src/gui/screensaver.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index e66dbfbca..acf61be32 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -37,6 +37,9 @@ #include "audiomute.h" #include "screensaver.h" +#include +extern CInfoClock *InfoClock; + #include extern cVideo * videoDecoder; @@ -73,6 +76,7 @@ CScreenSaver* CScreenSaver::getInstance() void CScreenSaver::Start() { CAudioMute::getInstance()->enableMuteIcon(false); + InfoClock->enableInfoClock(false); m_viewer->SetScaling((CPictureViewer::ScalingMode)g_settings.picviewer_scaling); m_viewer->SetVisible(g_settings.screen_StartX, g_settings.screen_EndX, g_settings.screen_StartY, g_settings.screen_EndY); @@ -108,6 +112,7 @@ void CScreenSaver::Stop() thrScreenSaver = 0; m_frameBuffer->paintBackground(); //clear entire screen + InfoClock->enableInfoClock(true); CAudioMute::getInstance()->enableMuteIcon(true); }