mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: disable clock while screesaver
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7c9a158f11
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-30 (Tue, 30 Dec 2014)
Origin message was:
------------------
- screensaver: disable clock while screesaver
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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