[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.5,1.6

Zoltan Ponekker pontscho at mplayer.dev.hu
Wed Aug 29 18:34:42 CEST 2001


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv7515

Modified Files:
	mw.h 
Log Message:
fix poti

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- mw.h	29 Aug 2001 15:08:12 -0000	1.5
+++ mw.h	29 Aug 2001 16:34:40 -0000	1.6
@@ -444,7 +444,8 @@
             case itHPotmeter:
                  item->value=(float)( X - item->x ) / item->width * 100.0f;
 potihandled:
-                 btnModify( item->msg,item->value );
+		 if ( item->value > 100.0f ) item->value=100.0f;
+		 if ( item->value < 0.0f ) item->value=0.0f;
                  if ( ( item->msg == evSetVolume )||( item->msg == evSetBalance ) ) mplMsgHandle( item->msg,item->value );
                  mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
                  break;




More information about the MPlayer-cvslog mailing list