[MPlayer-cvslog] r33047 - trunk/gui/app.c

ib subversion at mplayerhq.hu
Tue Mar 8 12:06:27 CET 2011


Author: ib
Date: Tue Mar  8 12:06:27 2011
New Revision: 33047

Log:
Make constants explicitly type float.

This has been accidentally remove in r32984 but is more intelligible that way.

Modified:
   trunk/gui/app.c

Modified: trunk/gui/app.c
==============================================================================
--- trunk/gui/app.c	Tue Mar  8 11:25:28 2011	(r33046)
+++ trunk/gui/app.c	Tue Mar  8 12:06:27 2011	(r33047)
@@ -148,10 +148,10 @@ void btnModify(int event, float state)
             case itPotmeter:
             case itVPotmeter:
             case itHPotmeter:
-                if (state < 0.0)
-                    state = 0.0;
-                if (state > 100.0)
-                    state = 100.0;
+                if (state < 0.0f)
+                    state = 0.0f;
+                if (state > 100.0f)
+                    state = 100.0f;
                 appMPlayer.mainItems[i].value = state;
                 break;
             }
@@ -169,10 +169,10 @@ void btnModify(int event, float state)
             case itPotmeter:
             case itVPotmeter:
             case itHPotmeter:
-                if (state < 0.0)
-                    state = 0.0;
-                if (state > 100.0)
-                    state = 100.0;
+                if (state < 0.0f)
+                    state = 0.0f;
+                if (state > 100.0f)
+                    state = 100.0f;
                 appMPlayer.barItems[i].value = state;
                 break;
             }


More information about the MPlayer-cvslog mailing list