screensaver.cpp: start clock only if not running

This commit is contained in:
2018-11-14 15:32:24 +01:00
parent 014f0f3da7
commit 9eeea78fb8

View File

@@ -325,7 +325,8 @@ void CScreenSaver::paint()
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;
scr_clock->setPos(x_random, y_random);
scr_clock->Start();
if (!scr_clock->isRun())
scr_clock->Start();
if (g_settings.screensaver_mode == SCR_MODE_CLOCK_COLOR) {
srand (time(NULL));