Mercurial > mplayer.hg
changeset 36281:4e64c5384bce
Cosmetic: Don't shorten floating point constants that way.
author | ib |
---|---|
date | Tue, 30 Jul 2013 12:31:49 +0000 |
parents | e160aade4b6d |
children | 872298702c15 |
files | gui/ui/main.c gui/ui/playbar.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/main.c Tue Jul 30 11:54:04 2013 +0000 +++ b/gui/ui/main.c Tue Jul 30 12:31:49 2013 +0000 @@ -153,7 +153,7 @@ value=item->value; break; case itVPotmeter: - btnModify( item->message, ( 1. - (float)( Y - item->y ) / item->height) * 100.0f ); + btnModify( item->message, ( 1.0 - (float)( Y - item->y ) / item->height) * 100.0f ); uiEvent( item->message,item->value ); value=item->value; break; @@ -197,7 +197,7 @@ item->value=(float)( X - item->x ) / item->width * 100.0f; goto potihandled; case itVPotmeter: - item->value=(1. - (float)( Y - item->y ) / item->height) * 100.0f; + item->value=(1.0 - (float)( Y - item->y ) / item->height) * 100.0f; goto potihandled; case itHPotmeter: item->value=(float)( X - item->x ) / item->width * 100.0f;
--- a/gui/ui/playbar.c Tue Jul 30 11:54:04 2013 +0000 +++ b/gui/ui/playbar.c Tue Jul 30 12:31:49 2013 +0000 @@ -182,7 +182,7 @@ value=item->value; break; case itVPotmeter: - btnModify( item->message, ( 1. - (float)( Y - item->y ) / item->height) * 100.0f ); + btnModify( item->message, ( 1.0 - (float)( Y - item->y ) / item->height) * 100.0f ); uiEvent( item->message,item->value ); value=item->value; break; @@ -218,7 +218,7 @@ item->value=(float)( X - item->x ) / item->width * 100.0f; goto potihandled; case itVPotmeter: - item->value=(1. - (float)( Y - item->y ) / item->height) * 100.0f; + item->value=(1.0 - (float)( Y - item->y ) / item->height) * 100.0f; goto potihandled; case itHPotmeter: item->value=(float)( X - item->x ) / item->width * 100.0f;