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,9 +493,14 @@ void gui_feedback()
if (next_idle_flags & REFRESH_FULL_SCREEN) { if (next_idle_flags & REFRESH_FULL_SCREEN) {
next_idle_flags ^= REFRESH_FULL_SCREEN; next_idle_flags ^= REFRESH_FULL_SCREEN;
try {
const CurrentSpriteReader sprite(UIContext::instance()); const CurrentSpriteReader sprite(UIContext::instance());
update_screen_for_sprite(sprite); update_screen_for_sprite(sprite);
} }
catch (...) {
// do nothing
}
}
/* record file if is necessary */ /* record file if is necessary */
rec_screen_poll(); rec_screen_poll();