Author: grzywacz
Date: Wed Apr 18 20:01:08 2007
New Revision: 16905
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16905&view=rev
Log:
Tweak dialogs a little bit so that Recruit and Recall fit in the screen.
Modified:
branches/gp2x/src/dialogs.cpp
branches/gp2x/src/show_dialog.cpp
Modified: branches/gp2x/src/dialogs.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/gp2x/src/dialogs.cpp?rev=16905&r1=16904&r2=16905&view=diff
==============================================================================
--- branches/gp2x/src/dialogs.cpp (original)
+++ branches/gp2x/src/dialogs.cpp Wed Apr 18 20:01:08 2007
@@ -569,8 +569,14 @@
map_(map), units_(&unit_store_),
index_(0), left_(on_left_side),
weapons_(type == SHOW_ALL)
{
+#ifndef USE_TINY_GUI
unsigned w = font::relative_size(weapons_ ? 200 : 190);
unsigned h = font::relative_size(weapons_ ? 370 : 140);
+#else
+ unsigned w = 100;
+ unsigned h = 180;
+
+#endif
set_measurements(w, h);
unit_store_.push_back(u);
}
@@ -581,7 +587,15 @@
map_(map), units_(&units), index_(0),
left_(on_left_side),
weapons_(type == SHOW_ALL)
{
- set_measurements(font::relative_size(200), font::relative_size(370));
+#ifndef USE_TINY_GUI
+ unsigned w = font::relative_size(weapons_ ? 200 : 190);
+ unsigned h = font::relative_size(weapons_ ? 370 : 140);
+#else
+ unsigned w = 100;
+ unsigned h = 180;
+
+#endif
+ set_measurements(w, h);
}
void unit_preview_pane::join()
@@ -764,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(160, 200);
+ set_measurements(150, 200);
#else
set_measurements(350, 400);
#endif
Modified: branches/gp2x/src/show_dialog.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/gp2x/src/show_dialog.cpp?rev=16905&r1=16904&r2=16905&view=diff
==============================================================================
--- branches/gp2x/src/show_dialog.cpp (original)
+++ branches/gp2x/src/show_dialog.cpp Wed Apr 18 20:01:08 2007
@@ -375,7 +375,7 @@
}
#ifdef USE_TINY_GUI
- const int max_menu_width = 300;
+ const int max_menu_width = 200;
#else
const int max_menu_width = -1;
#endif
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits