Author: shadowmaster
Date: Thu Mar 22 01:14:03 2012
New Revision: 53610

URL: http://svn.gna.org/viewcvs/wesnoth?rev=53610&view=rev
Log:
preferences: Make the Preferences dialog even more consistent across all 
supported resolutions

 * Moved the main working area upwards as it was already done on vertical 
resolutions < 600
 * Tweaked working area dimensions so (for unknown reasons) the left side menu 
can be displayed a little better on 800x480, missing one visible item instead 
of two
 * The dialog became slightly shorter on all resolutions, but this shouldn't 
have any functional implications

Modified:
    trunk/src/game_preferences_display.cpp

Modified: trunk/src/game_preferences_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_preferences_display.cpp?rev=53610&r1=53609&r2=53610&view=diff
==============================================================================
--- trunk/src/game_preferences_display.cpp (original)
+++ trunk/src/game_preferences_display.cpp Thu Mar 22 01:14:03 2012
@@ -244,7 +244,7 @@
        sort_advanced_preferences();
 
        // FIXME: this box should be vertically centered on the screen, but is 
not
-       set_measurements(465, disp_.video().gety() < 600 ? 407 : 425);
+       set_measurements(465, 400);
 
 
        sound_button_.set_check(sound_on());
@@ -521,8 +521,8 @@
 
        const int right_border = font::relative_size(10);
        const int horizontal_padding = 25;
-       // please also check 800x600 resolution if you change these spacings
-       const int top_border = disp_.video().gety() < 600 ? 10 : 28;
+       // please also check 800x480 resolution if you change these spacings
+       const int top_border = 10;
        const int bottom_border = 10;
        const int short_interline = 21;
        const int item_interline = 40;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to