1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-09 08:27:18 +00:00

Fix a declarations vs statements warning.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21412 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-12-01 15:04:46 +00:00
parent 3aa3fbbf6c
commit a321bc9a2b

View File

@ -897,6 +897,9 @@ static void draw_osd(void)
static void flip_page(void) static void flip_page(void)
{ {
int curTime;
static int lastTime;
if(theWindow == NULL) if(theWindow == NULL)
return; return;
@ -980,8 +983,8 @@ static void flip_page(void)
//update activity every 30 seconds to prevent //update activity every 30 seconds to prevent
//screensaver from starting up. //screensaver from starting up.
int curTime = TickCount()/60; curTime = TickCount()/60;
static int lastTime = 0; lastTime = 0;
if( ((curTime/ - lastTime) >= 5) || (lastTime == 0) ) if( ((curTime/ - lastTime) >= 5) || (lastTime == 0) )
{ {