mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- screensaver: disable clock while screesaver
This commit is contained in:
@@ -37,6 +37,9 @@
|
|||||||
#include "audiomute.h"
|
#include "audiomute.h"
|
||||||
#include "screensaver.h"
|
#include "screensaver.h"
|
||||||
|
|
||||||
|
#include <gui/infoclock.h>
|
||||||
|
extern CInfoClock *InfoClock;
|
||||||
|
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
extern cVideo * videoDecoder;
|
extern cVideo * videoDecoder;
|
||||||
|
|
||||||
@@ -73,6 +76,7 @@ CScreenSaver* CScreenSaver::getInstance()
|
|||||||
void CScreenSaver::Start()
|
void CScreenSaver::Start()
|
||||||
{
|
{
|
||||||
CAudioMute::getInstance()->enableMuteIcon(false);
|
CAudioMute::getInstance()->enableMuteIcon(false);
|
||||||
|
InfoClock->enableInfoClock(false);
|
||||||
|
|
||||||
m_viewer->SetScaling((CPictureViewer::ScalingMode)g_settings.picviewer_scaling);
|
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);
|
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;
|
thrScreenSaver = 0;
|
||||||
|
|
||||||
m_frameBuffer->paintBackground(); //clear entire screen
|
m_frameBuffer->paintBackground(); //clear entire screen
|
||||||
|
InfoClock->enableInfoClock(true);
|
||||||
CAudioMute::getInstance()->enableMuteIcon(true);
|
CAudioMute::getInstance()->enableMuteIcon(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user