Author: grzywacz
Date: Wed Apr 18 20:05:41 2007
New Revision: 16906

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16906&view=rev
Log:
Tweak the campaign selection dialog to fit into the screen.

Modified:
    branches/gp2x/src/dialogs.cpp

Modified: branches/gp2x/src/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/gp2x/src/dialogs.cpp?rev=16906&r1=16905&r2=16906&view=diff
==============================================================================
--- branches/gp2x/src/dialogs.cpp (original)
+++ branches/gp2x/src/dialogs.cpp Wed Apr 18 20:05:41 2007
@@ -778,7 +778,7 @@
 campaign_preview_pane::campaign_preview_pane(CVideo 
&video,std::vector<std::pair<std::string,std::string> >* desc) : 
gui::preview_pane(video),descriptions_(desc),index_(0)
 {
 #ifdef USE_TINY_GUI
-       set_measurements(150, 200);
+       set_measurements(130, 200);
 #else
        set_measurements(350, 400);
 #endif
@@ -804,9 +804,9 @@
 
        const SDL_Rect area = {
                location().x+campaign_preview_border,
-               location().y+campaign_preview_border*5,
+               location().y+campaign_preview_border,
                location().w-campaign_preview_border*2,
-               location().h-campaign_preview_border*6 };
+               location().h-campaign_preview_border*2 };
 
        /* background frame */
        static const std::string default_style("mainmenu");


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

Reply via email to