Author: mordante
Date: Fri May  1 21:42:23 2009
New Revision: 35396

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35396&view=rev
Log:
Replace the layout algorithm.

The new algorithm seems to be at par with the old algorithm so make the
new one the algorithm used. The algorithm still needs some polishing but
the big problem is the old algorithm which doesn't know about the new
scrollbar mode. So once this algorithm gets a bit more testing in trunk
the old algorithm can be removed and this one can get polished.

Modified:
    trunk/src/gui/widgets/window.cpp

Modified: trunk/src/gui/widgets/window.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/window.cpp?rev=35396&r1=35395&r2=35396&view=diff
==============================================================================
--- trunk/src/gui/widgets/window.cpp (original)
+++ trunk/src/gui/widgets/window.cpp Fri May  1 21:42:23 2009
@@ -440,11 +440,7 @@
                        update_rect(rect);
                }
 
-               if(gui2::new_widgets) {
-                       NEW_layout();
-               } else {
-                       layout();
-               }
+               NEW_layout();
 
                // Get new surface for restoring
                SDL_Rect rect = get_rect();


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

Reply via email to