Fix blank clock when switch interval < 1s.
This commit is contained in:
committed by
Andrzej Rybczak
parent
89e00e447a
commit
a259a67c16
@@ -111,8 +111,6 @@ void Clock::Update()
|
|||||||
myPlaylist->SwitchTo();
|
myPlaylist->SwitchTo();
|
||||||
|
|
||||||
static timeval past = { 0, 0 };
|
static timeval past = { 0, 0 };
|
||||||
if (Global::Timer.tv_sec <= past.tv_sec)
|
|
||||||
return;
|
|
||||||
gettimeofday(&past, 0);
|
gettimeofday(&past, 0);
|
||||||
|
|
||||||
tm *time = localtime(&past.tv_sec);
|
tm *time = localtime(&past.tv_sec);
|
||||||
|
|||||||
Reference in New Issue
Block a user