Author: shadowmaster
Date: Sat Feb  7 00:33:53 2009
New Revision: 32631

URL: http://svn.gna.org/viewcvs/wesnoth?rev=32631&view=rev
Log:
Cast a clip_rect_setter when drawing the highlighted portion of the
progress test, to avoid it being drawn at inappropriate times.

Modified:
    trunk/src/widgets/progressbar.cpp

Modified: trunk/src/widgets/progressbar.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/progressbar.cpp?rev=32631&r1=32630&r2=32631&view=diff
==============================================================================
--- trunk/src/widgets/progressbar.cpp (original)
+++ trunk/src/widgets/progressbar.cpp Sat Feb  7 00:33:53 2009
@@ -88,6 +88,8 @@
                SDL_Rect selected_text_location = location();
                selected_text_location.w = inner_area.w;
                selected_text_location.h = inner_area.h;
+               {
+               clip_rect_setter clippy(surf, selected_text_location);
                font::draw_text(
                        &video(),
                        selected_text_location,
@@ -97,6 +99,7 @@
                        text_area.x,
                        text_area.y
                );
+               }
        }
 
        update_rect(location());


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

Reply via email to