Merge pull request #717 from wesnoth/bug24553fix

Fix bug #24553: Prevent the display from drawing over the storyscreen.
This commit is contained in:
Andreas 2016-08-05 23:23:20 +12:00 committed by GitHub
commit 037a767ada
2 changed files with 6 additions and 1 deletions

View file

@ -467,6 +467,7 @@ void pump()
}
//make sure this runs in it's own scope.
{
flip_locker flip_lock(CVideo::get_singleton());
for( std::deque<context>::iterator i = event_contexts.begin() ; i != event_contexts.end(); ++i) {
const handler_list& event_handlers = (*i).handlers;
for(auto handler : event_handlers) {

View file

@ -366,6 +366,9 @@ bool part_ui::render_floating_images()
update_rect(old_ri.rect);
}
}
back_button_.set_dirty();
next_button_.set_dirty();
play_button_.set_dirty();
if (!skip_)
{
@ -380,7 +383,6 @@ bool part_ui::render_floating_images()
++fi_n;
}
return true;
#endif
}
@ -964,6 +966,8 @@ bool part_ui::handle_interface()
part_ui::RESULT part_ui::show()
{
update_locker locker(video_);
this->prepare_background();
this->prepare_geometry();
this->prepare_floating_images();