[MPlayer-cvslog] r36376 - in trunk/gui: dialog/preferences.c ui/menu.c

ib subversion at mplayerhq.hu
Tue Jul 30 13:54:04 CEST 2013


Author: ib
Date: Tue Jul 30 13:54:04 2013
New Revision: 36376

Log:
Remove unnecessary type conversions.

Modified:
   trunk/gui/dialog/preferences.c
   trunk/gui/ui/menu.c

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Tue Jul 30 13:52:47 2013	(r36375)
+++ trunk/gui/dialog/preferences.c	Tue Jul 30 13:54:04 2013	(r36376)
@@ -1162,8 +1162,8 @@ void ShowPreferences( void )
 #ifdef CONFIG_ASS
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBUseASS ),gtkASS.enabled );
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBASSUseMargins ),gtkASS.use_margins );
- gtk_spin_button_set_value( (GtkSpinButton *)SBASSTopMargin,(gdouble)gtkASS.top_margin );
- gtk_spin_button_set_value( (GtkSpinButton *)SBASSBottomMargin,(gdouble)gtkASS.bottom_margin );
+ gtk_spin_button_set_value( (GtkSpinButton *)SBASSTopMargin,gtkASS.top_margin );
+ gtk_spin_button_set_value( (GtkSpinButton *)SBASSBottomMargin,gtkASS.bottom_margin );
 
  if ( !gtkASS.enabled )
   {

Modified: trunk/gui/ui/menu.c
==============================================================================
--- trunk/gui/ui/menu.c	Tue Jul 30 13:52:47 2013	(r36375)
+++ trunk/gui/ui/menu.c	Tue Jul 30 13:54:04 2013	(r36376)
@@ -177,6 +177,6 @@ void uiMenuHide( int mx,int my,int w )
         guiApp.menuItems[i].x+guiApp.menuItems[i].width,
         guiApp.menuItems[i].y+guiApp.menuItems[i].height ) )
    {
-    uiEvent( guiApp.menuItems[i].message,(float)w );
+    uiEvent( guiApp.menuItems[i].message,w );
    }
 }


More information about the MPlayer-cvslog mailing list