From: Stijn Buys Date: Tue, 25 Jun 2013 20:00:02 +0000 (+0200) Subject: Cleaned up comments. X-Git-Tag: xonotic-v0.8.0~10^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a2681ec7caa19ee4895a4c19b08e35fdb0e263a5;p=xonotic%2Fnetradiant.git Cleaned up comments. --- diff --git a/radiant/gtkdlgs.cpp b/radiant/gtkdlgs.cpp index ace48396..34fc54c7 100644 --- a/radiant/gtkdlgs.cpp +++ b/radiant/gtkdlgs.cpp @@ -590,7 +590,7 @@ void DoAbout(){ // ============================================================================= // TextureLayout dialog -// remembers last used texture scale values +// Last used texture scale values static float last_used_texture_layout_scale_x = 4.0; static float last_used_texture_layout_scale_y = 4.0; @@ -687,14 +687,15 @@ EMessageBoxReturn DoTextureLayout( float *fx, float *fy ){ sprintf( buf, "%f", last_used_texture_layout_scale_y ); gtk_entry_set_text( y, buf ); - // Set focus + // Set focus after intializing the values gtk_widget_grab_focus( GTK_WIDGET( x ) ); EMessageBoxReturn ret = modal_dialog_show( window, dialog ); if ( ret == eIDOK ) { *fx = static_cast( atof( gtk_entry_get_text( x ) ) ); *fy = static_cast( atof( gtk_entry_get_text( y ) ) ); - + + // Remember last used values last_used_texture_layout_scale_x = *fx; last_used_texture_layout_scale_y = *fy; }