Mercurial > mplayer.hg
changeset 1750:5041d1bf251e
fix poti
author | pontscho |
---|---|
date | Wed, 29 Aug 2001 16:34:40 +0000 |
parents | f20a20e94215 |
children | d0dbc020f50f |
files | Gui/mplayer/mw.h |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/mw.h Wed Aug 29 16:26:31 2001 +0000 +++ b/Gui/mplayer/mw.h Wed Aug 29 16:34:40 2001 +0000 @@ -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;