neutrino: move screensaver members to screensaver's code

Origin commit data
------------------
Commit: 8a08024e9c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-25 (Sat, 25 Nov 2017)

Origin message was:
------------------
- neutrino: move screensaver members to screensaver's code
This commit is contained in:
vanhofen
2017-11-25 09:58:55 +01:00
parent 86e6a34a2e
commit 02dffb9d98
5 changed files with 25 additions and 34 deletions

View File

@@ -64,6 +64,7 @@ CScreenSaver::CScreenSaver()
scr_clock = NULL;
clr.i_color = COL_DARK_GRAY;
pip_channel_id = 0;
idletime = time(NULL);
}
CScreenSaver::~CScreenSaver()
@@ -135,6 +136,7 @@ void CScreenSaver::Stop()
pthread_cancel(thrScreenSaver);
thrScreenSaver = 0;
}
resetIdleTime();
if (scr_clock){
scr_clock->Stop();
@@ -322,7 +324,7 @@ void CScreenSaver::paint()
}
}
bool CScreenSaver::IsRun()
bool CScreenSaver::isActive()
{
if(thrScreenSaver)
return true;