mail[Wesnoth-commits] r28713 - /trunk/src/gui/widgets/window.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 18, 2008 - 17:53:
Author: mordante
Date: Mon Aug 18 17:53:23 2008
New Revision: 28713

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28713&view=rev
Log:
Fix the foreground drawing, which was broken in the previous commit.

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=28713&r1=28712&r2=28713&view=diff
==============================================================================
--- trunk/src/gui/widgets/window.cpp (original)
+++ trunk/src/gui/widgets/window.cpp Mon Aug 18 17:53:23 2008
@@ -207,7 +207,7 @@
 
        surface frame_buffer = get_video_surface();
 
-       const bool draw_background = resized_ || need_layout_;
+       const bool full_redraw = resized_ || need_layout_;
        
        if(resized_) {
                // Restore old surface.
@@ -231,7 +231,7 @@
                layout();
        }
 
-       if(draw_background) {
+       if(full_redraw) {
                canvas(0).draw();
                blit_surface(canvas(0).surf(), 0, window_, 0);
        }               
@@ -245,6 +245,11 @@
 
                itor->draw(window_, false, false);
        }
+
+       if(full_redraw) {
+               canvas(1).draw();
+               blit_surface(canvas(1).surf(), 0, window_, 0);
+       }               
 
        if(tooltip_.is_dirty()) {
                tooltip_.draw(window_);




Related Messages


Powered by MHonArc, Updated Mon Aug 18 18:01:38 2008