From 9740f5971814222827901febddf0d829ce07d631 Mon Sep 17 00:00:00 2001 From: pontscho Date: Wed, 29 Aug 2001 16:34:40 +0000 Subject: fix poti git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1751 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/mw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Gui') diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index 807cd98d3b..5a39e5ecd8 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -444,7 +444,8 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ) 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; -- cgit v1.2.3