Fix blank clock when switch interval < 1s.

This commit is contained in:
Marc Jessome
2011-09-13 16:51:21 -04:00
committed by Andrzej Rybczak
parent 89e00e447a
commit a259a67c16

View File

@@ -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);