Author: mordante
Date: Mon Aug 25 22:26:26 2008
New Revision: 28985

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28985&view=rev
Log:
Fix colour cursor when started with --new-widgets.

When started with --new-widgets the setting of the colour cursor was
ignored. Copied some initialization code from show_title() to fix this
problem. (Copied extra code to avoid other future problems.)

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=28985&r1=28984&r2=28985&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Mon Aug 25 22:26:26 2008
@@ -2160,7 +2160,12 @@
                gui::TITLE_RESULT res = game.is_loading() ? gui::LOAD_GAME : 
gui::NOTHING;
 
                if(gui2::new_widgets) {
-                       cursor::set(cursor::NORMAL); // does a window need a 
cursor manager as well???
+                       const preferences::display_manager 
disp_manager(&game.disp());
+                       const hotkey::basic_handler key_handler(&game.disp());
+
+                       const font::floating_label_context label_manager;
+
+                       cursor::set(cursor::NORMAL);
                        gui2::ttitle_screen dlg;
                        dlg.show(game.disp().video());
 


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

Reply via email to