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:
parent
177c404589
commit
8b49a58d40
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue