changeset 36280:e160aade4b6d

Remove unnecessary type conversions.
author ib
date Tue, 30 Jul 2013 11:54:04 +0000
parents 79519749ef4e
children 4e64c5384bce
files gui/dialog/preferences.c gui/ui/menu.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/preferences.c	Tue Jul 30 11:52:47 2013 +0000
+++ b/gui/dialog/preferences.c	Tue Jul 30 11:54:04 2013 +0000
@@ -1162,8 +1162,8 @@
 #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 )
   {
--- a/gui/ui/menu.c	Tue Jul 30 11:52:47 2013 +0000
+++ b/gui/ui/menu.c	Tue Jul 30 11:54:04 2013 +0000
@@ -177,6 +177,6 @@
         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 );
    }
 }