aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rwxr-xr-xengines/pegasus/items/inventorypicture.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/pegasus/items/inventorypicture.cpp b/engines/pegasus/items/inventorypicture.cpp
index 5eef7ef15c..04bac4472e 100755
--- a/engines/pegasus/items/inventorypicture.cpp
+++ b/engines/pegasus/items/inventorypicture.cpp
@@ -319,6 +319,8 @@ void InventoryItemsPicture::deactivateInventoryPicture() {
}
void InventoryItemsPicture::playEndMessage(DisplayElement *pushElement) {
+ PegasusEngine *vm = (PegasusEngine *)g_engine;
+
Movie endMessage(0);
_shouldDrawHighlight = false;
@@ -329,7 +331,8 @@ void InventoryItemsPicture::playEndMessage(DisplayElement *pushElement) {
endMessage.start();
while (endMessage.isRunning()) {
- ((PegasusEngine *)g_engine)->refreshDisplay();
+ vm->checkCallBacks();
+ vm->refreshDisplay();
g_system->delayMillis(10);
}