1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 19:05:33 +00:00
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1751 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-08-29 16:34:40 +00:00
parent 61fb4d543f
commit 9740f59718

View File

@ -444,7 +444,8 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY )
case itHPotmeter: case itHPotmeter:
item->value=(float)( X - item->x ) / item->width * 100.0f; item->value=(float)( X - item->x ) / item->width * 100.0f;
potihandled: 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 ); if ( ( item->msg == evSetVolume )||( item->msg == evSetBalance ) ) mplMsgHandle( item->msg,item->value );
mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow ); mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
break; break;