mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
screensaver.cpp: start clock only if not running
Origin commit data
------------------
Commit: 830f37ff92
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-11-21 (Wed, 21 Nov 2018)
This commit is contained in:
@@ -342,6 +342,7 @@ 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);
|
||||
if (!scr_clock->isRun())
|
||||
scr_clock->Start();
|
||||
|
||||
if (g_settings.screensaver_mode == SCR_MODE_CLOCK_COLOR) {
|
||||
|
Reference in New Issue
Block a user