Fix 'flickering' in the main menu.

It makes no sence to set a clip_rect when it's destroyed directly.

The issue was spotted by Crendgrim.
This commit is contained in:
Mark de Wever 2012-04-29 14:15:57 +00:00
parent aa51d1c6da
commit 2dc4c0d3bf

View file

@ -736,9 +736,7 @@ void twindow::draw()
dirty_list_.push_back(std::vector<twidget*>(1, this));
update_rect(screen_area());
#else
if(!new_widgets) {
clip_rect_setter clip(frame_buffer, &dirty_rect);
}
clip_rect_setter clip(frame_buffer, &dirty_rect);
#endif
/*