mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
screensaver.cpp: start clock only if not running
This commit is contained in:
@@ -325,6 +325,7 @@ void CScreenSaver::paint()
|
|||||||
int x_random = rand() % ((g_settings.screen_EndX - w_cl - g_settings.screen_StartX) + 1) + g_settings.screen_StartX;
|
int x_random = rand() % ((g_settings.screen_EndX - w_cl - g_settings.screen_StartX) + 1) + g_settings.screen_StartX;
|
||||||
int y_random = rand() % ((g_settings.screen_EndY - h_cl - g_settings.screen_StartY) + 1) + g_settings.screen_StartY;
|
int y_random = rand() % ((g_settings.screen_EndY - h_cl - g_settings.screen_StartY) + 1) + g_settings.screen_StartY;
|
||||||
scr_clock->setPos(x_random, y_random);
|
scr_clock->setPos(x_random, y_random);
|
||||||
|
if (!scr_clock->isRun())
|
||||||
scr_clock->Start();
|
scr_clock->Start();
|
||||||
|
|
||||||
if (g_settings.screensaver_mode == SCR_MODE_CLOCK_COLOR) {
|
if (g_settings.screensaver_mode == SCR_MODE_CLOCK_COLOR) {
|
||||||
|
Reference in New Issue
Block a user