Found a better solution for 2012-04-29T14:15:57Z!koraq@xs4all.nl.

It's now possible to draw on the entire screen when using --new-widgets
and use proper clipping when not using --new-widgets.
This commit is contained in:
Mark de Wever 2012-04-29 14:37:51 +00:00
parent 177c404589
commit 8b49a58d40

View file

@ -727,7 +727,9 @@ void twindow::draw()
assert(!item.empty());
const SDL_Rect dirty_rect = item.back()->get_dirty_rect();
const SDL_Rect dirty_rect = new_widgets
? screen_area()
: item.back()->get_dirty_rect();
// For testing we disable the clipping rect and force the entire screen to
// update. This way an item rendered at the wrong place is directly visible.