summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 16:34:40 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-29 16:34:40 +0000
commit9740f5971814222827901febddf0d829ce07d631 (patch)
treeae0c23670285b96cb7ecfc7f49ed336c1e16ab48 /Gui
parent61fb4d543f0c2cbb20ee4e1c6badac48c5d90136 (diff)
downloadmpv-9740f5971814222827901febddf0d829ce07d631.tar.bz2
mpv-9740f5971814222827901febddf0d829ce07d631.tar.xz
fix poti
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1751 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/mw.h3
1 files changed, 2 insertions, 1 deletions
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;