Author: sapient
Date: Sat Jun 2 10:58:32 2007
New Revision: 18012
URL: http://svn.gna.org/viewcvs/wesnoth?rev=18012&view=rev
Log:
use the correct layout (non-centered) for game event messages
Modified:
trunk/src/game_events.cpp
Modified: trunk/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=18012&r1=18011&r2=18012&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Sat Jun 2 10:58:32 2007
@@ -1631,11 +1631,11 @@
if(!options.empty()) {
to_show.set_menu(options);
}
- gui::dialog::dimension_measurements dim =
to_show.layout(-1, map_area.y + 4);
+ gui::dialog::dimension_measurements dim =
to_show.layout();
to_show.get_menu().set_width( dim.menu_width );
to_show.get_menu().set_max_width( dim.menu_width );
to_show.get_menu().wrap_words();
- to_show.layout();
+ to_show.layout(-1, map_area.y + 4);
option_chosen = to_show.show_min_duration(lifetime);
LOG_DP << "showed dialog...\n";
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits