[MPlayer-cvslog] r36372 - in trunk/gui: dialog/menu.c ui/actions.c win32/gui.c

ib subversion at mplayerhq.hu
Tue Jul 30 12:57:57 CEST 2013


Author: ib
Date: Tue Jul 30 12:57:57 2013
New Revision: 36372

Log:
Be more pedantic about type of the constant.

Modified:
   trunk/gui/dialog/menu.c
   trunk/gui/ui/actions.c
   trunk/gui/win32/gui.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Tue Jul 30 12:41:53 2013	(r36371)
+++ trunk/gui/dialog/menu.c	Tue Jul 30 12:57:57 2013	(r36372)
@@ -589,7 +589,7 @@ GtkWidget * CreatePopUpMenu( void )
      {
        a169 = (FFABS(movie_aspect - 16.0f / 9.0f) <= 0.01f);
        a43 = (FFABS(movie_aspect - 4.0f / 3.0f) <= 0.01f);
-       a235 = (FFABS(movie_aspect - 2.35) <= 0.01f);
+       a235 = (FFABS(movie_aspect - 2.35f) <= 0.01f);
      }
 
     AspectMenu=AddSubMenu( window1, (const char*)aspect_xpm, Menu,MSGTR_MENU_AspectRatio );

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Tue Jul 30 12:41:53 2013	(r36371)
+++ trunk/gui/ui/actions.c	Tue Jul 30 12:57:57 2013	(r36372)
@@ -435,7 +435,7 @@ play:
             break;
 
         case 4:
-            aspect = 2.35;
+            aspect = 2.35f;
             break;
 
         case 1:

Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c	Tue Jul 30 12:41:53 2013	(r36371)
+++ trunk/gui/win32/gui.c	Tue Jul 30 12:57:57 2013	(r36372)
@@ -482,7 +482,7 @@ static LRESULT CALLBACK VideoProc(HWND h
                             aspect = 4.0f / 3.0f;
                             break;
                         case ID_ASPECT3:
-                            aspect = 2.35;
+                            aspect = 2.35f;
                             break;
                         default:
                             aspect = -1;


More information about the MPlayer-cvslog mailing list