Fixed a problem in gui_feedback() where the CurrentSpriteReader could be locked.

This commit is contained in:
David Capello 2010-03-07 15:25:47 -02:00
parent 2ed2ce9545
commit d0514884de

View File

@ -493,8 +493,13 @@ void gui_feedback()
if (next_idle_flags & REFRESH_FULL_SCREEN) {
next_idle_flags ^= REFRESH_FULL_SCREEN;
const CurrentSpriteReader sprite(UIContext::instance());
update_screen_for_sprite(sprite);
try {
const CurrentSpriteReader sprite(UIContext::instance());
update_screen_for_sprite(sprite);
}
catch (...) {
// do nothing
}
}
/* record file if is necessary */