[Mplayer-cvslog] CVS: main/Gui/mplayer mplayer.c,1.22,1.23 mw.h,1.51,1.52 sw.h,1.27,1.28
Zoltan Ponekker
pontscho at mplayerhq.banki.hu
Tue Apr 16 19:41:31 CEST 2002
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv24907/Gui/mplayer
Modified Files:
mplayer.c mw.h sw.h
Log Message:
fix playlist bug with gui and rewrite mousecursor show/hide code
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mplayer.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- mplayer.c 11 Mar 2002 09:19:14 -0000 1.22
+++ mplayer.c 16 Apr 2002 17:41:29 -0000 1.23
@@ -21,10 +21,8 @@
#include "../../libmpdemux/stream.h"
#include "../../mp_msg.h"
-#define mplMouseTimerConst 10
#define mplRedrawTimerConst 5
-int mplMouseTimer = mplMouseTimerConst;
int mplRedrawTimer = mplRedrawTimerConst;
int mplTimer = 0;
@@ -40,9 +38,7 @@
void mplTimerHandler( void )
{
mplTimer++;
- mplMouseTimer--;
mplRedrawTimer--;
- if ( mplMouseTimer == 0 ) mplEventHandling( evHideMouseCursor,0 );
if ( mplRedrawTimer == 0 ) mplEventHandling( evRedraw,0 );
}
Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- mw.h 7 Apr 2002 18:00:41 -0000 1.51
+++ mw.h 16 Apr 2002 17:41:29 -0000 1.52
@@ -387,9 +387,6 @@
break;
// --- timer events
- case evHideMouseCursor:
- wsVisibleMouse( &appMPlayer.subWindow,wsHideMouseCursor );
- break;
case evRedraw:
mplMainRender=1;
wsPostRedisplay( &appMPlayer.mainWindow );
@@ -418,8 +415,6 @@
static int SelectedItem = -1;
int currentselected = -1;
-
- wsVisibleMouse( &appMPlayer.subWindow,wsShowMouseCursor );
for ( i=0;i < appMPlayer.NumberOfItems + 1;i++ )
if ( ( appMPlayer.Items[i].pressed != btnDisabled )&&
Index: sw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/sw.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- sw.h 23 Feb 2002 15:12:53 -0000 1.27
+++ sw.h 16 Apr 2002 17:41:29 -0000 1.28
@@ -26,10 +26,6 @@
static int mplSubMoved = 0;
static int msButton = 0;
- mplMouseTimer=mplMouseTimerConst;
- wsVisibleMouse( &appMPlayer.subWindow,wsShowMouseCursor );
-
-
switch( Button )
{
case wsPMMouseButton:
@@ -67,7 +63,6 @@
break;
case wsPRMouseButton:
mplMenuMouseHandle( X,Y,RX,RY );
- mplMouseTimer=mplMouseTimerConst;
break;
}
break;
More information about the MPlayer-cvslog
mailing list