[MPlayer-cvslog] r36377 - in trunk/gui/ui: main.c playbar.c
ib
subversion at mplayerhq.hu
Tue Jul 30 14:31:49 CEST 2013
Author: ib
Date: Tue Jul 30 14:31:49 2013
New Revision: 36377
Log:
Cosmetic: Don't shorten floating point constants that way.
Modified:
trunk/gui/ui/main.c
trunk/gui/ui/playbar.c
Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c Tue Jul 30 13:54:04 2013 (r36376)
+++ trunk/gui/ui/main.c Tue Jul 30 14:31:49 2013 (r36377)
@@ -153,7 +153,7 @@ static void uiMainMouse( int Button,int
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 @@ rollerhandled:
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;
Modified: trunk/gui/ui/playbar.c
==============================================================================
--- trunk/gui/ui/playbar.c Tue Jul 30 13:54:04 2013 (r36376)
+++ trunk/gui/ui/playbar.c Tue Jul 30 14:31:49 2013 (r36377)
@@ -182,7 +182,7 @@ static void uiPlaybarMouse( int Button,
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 @@ rollerhandled:
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;
More information about the MPlayer-cvslog
mailing list