mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
screensaver: move more repeatedly used code to screensaver's code
Origin commit data
------------------
Commit: 7c1058382f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-25 (Sat, 25 Nov 2017)
Origin message was:
------------------
- screensaver: move more repeatedly used code to screensaver's code
This commit is contained in:
@@ -324,6 +324,13 @@ void CScreenSaver::paint()
|
||||
}
|
||||
}
|
||||
|
||||
bool CScreenSaver::canStart()
|
||||
{
|
||||
if (g_settings.screensaver_delay && (time(NULL) - idletime > g_settings.screensaver_delay*60))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CScreenSaver::isActive()
|
||||
{
|
||||
if(thrScreenSaver)
|
||||
|
Reference in New Issue
Block a user