mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- screensaver: move more repeatedly used code to screensaver's code
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -314,6 +314,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