changeset 36275:26e1408891f8

Remove unnecessary type conversions.
author ib
date Tue, 30 Jul 2013 10:41:53 +0000
parents ba5fa3e71247
children f7ef757c95c0
files gui/dialog/equalizer.c gui/dialog/preferences.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/equalizer.c	Sat Jul 27 23:48:16 2013 +0000
+++ b/gui/dialog/equalizer.c	Tue Jul 30 10:41:53 2013 +0000
@@ -95,10 +95,10 @@
    get_video_colors( guiInfo.sh_video,"saturation",&vo_gamma_saturation );
   }
 
- gtk_adjustment_set_value( VContrastadj,(float)vo_gamma_contrast );
- gtk_adjustment_set_value( VBrightnessadj,(float)vo_gamma_brightness );
- gtk_adjustment_set_value( VHueadj,(float)vo_gamma_hue );
- gtk_adjustment_set_value( VSaturationadj,(float)vo_gamma_saturation );
+ gtk_adjustment_set_value( VContrastadj,vo_gamma_contrast );
+ gtk_adjustment_set_value( VBrightnessadj,vo_gamma_brightness );
+ gtk_adjustment_set_value( VHueadj,vo_gamma_hue );
+ gtk_adjustment_set_value( VSaturationadj,vo_gamma_saturation );
 }
 
 static void eqSetChannelNames( void )
--- a/gui/dialog/preferences.c	Sat Jul 27 23:48:16 2013 +0000
+++ b/gui/dialog/preferences.c	Tue Jul 30 10:41:53 2013 +0000
@@ -1275,12 +1275,12 @@
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBNoIdle ),!player_idle_mode );
 
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),0 );
- gtk_adjustment_set_value( SBCacheadj,(float)gtkCacheSize );
+ gtk_adjustment_set_value( SBCacheadj,gtkCacheSize );
  if ( !gtkCacheOn ) gtk_widget_set_sensitive( SBCache,FALSE );
   else gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),TRUE );
 
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAutoSync ),0 );
- gtk_adjustment_set_value( SBAutoSyncadj,(float)gtkAutoSync );
+ gtk_adjustment_set_value( SBAutoSyncadj,gtkAutoSync );
  if ( !gtkAutoSyncOn ) gtk_widget_set_sensitive( SBAutoSync,FALSE );
   else gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBAutoSync ),TRUE );