summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-25 21:36:02 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-25 21:36:02 +0000
commitbee52bbd1045c9f74ee6f8ff57c53cfb433f0675 (patch)
tree024471b2bc8378a3500177ffb9e69612c7553838 /Gui
parentef6264e56eb0fdbc2f6984a1dc1ef841821b6cd6 (diff)
downloadmpv-bee52bbd1045c9f74ee6f8ff57c53cfb433f0675.tar.bz2
mpv-bee52bbd1045c9f74ee6f8ff57c53cfb433f0675.tar.xz
Remove updating of vo_mouse_timer_const from the main loop and also
remove the variable itself. Convert code in x11_common.c and OSD timing that depended on the variable to use real time instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18288 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/mw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c
index 77f30c4c9c..9c2062116e 100644
--- a/Gui/mplayer/mw.c
+++ b/Gui/mplayer/mw.c
@@ -78,7 +78,6 @@ void mplMainDraw( void )
extern void exit_player(char* how);
extern int vcd_track;
-extern int osd_visible;
static unsigned last_redraw_time = 0;
void mplEventHandling( int msg,float param )
@@ -271,7 +270,7 @@ set_volume:
#ifdef USE_OSD
if ( osd_level )
{
- osd_visible=vo_mouse_timer_const;
+ osd_visible=(GetTimerMS() + 1000) | 1;
vo_osd_progbar_type=OSD_VOLUME;
vo_osd_progbar_value=( ( guiIntfStruct.Volume ) * 256.0 ) / 100.0;
vo_osd_changed( OSDTYPE_PROGBAR );