[MPlayer-cvslog] r36371 - in trunk/gui/dialog: equalizer.c preferences.c

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


Author: ib
Date: Tue Jul 30 12:41:53 2013
New Revision: 36371

Log:
Remove unnecessary type conversions.

Modified:
   trunk/gui/dialog/equalizer.c
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c	Sun Jul 28 01:48:16 2013	(r36370)
+++ trunk/gui/dialog/equalizer.c	Tue Jul 30 12:41:53 2013	(r36371)
@@ -95,10 +95,10 @@ static void eqSetBands( int channel )
    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 )

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Sun Jul 28 01:48:16 2013	(r36370)
+++ trunk/gui/dialog/preferences.c	Tue Jul 30 12:41:53 2013	(r36371)
@@ -1275,12 +1275,12 @@ void ShowPreferences( void )
  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 );
 


More information about the MPlayer-cvslog mailing list