diff options
author | Matthew Hoops | 2011-12-13 11:58:20 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-12-13 11:58:20 -0500 |
commit | d55aeeec0b386966a194776f22434ad0bb81da4c (patch) | |
tree | cf6f69263ad6883825cdfdb60b5a337cec08d4f7 | |
parent | bbabf27f6191a06b6f1eeb77aee1c7bc8376c981 (diff) | |
download | scummvm-rg350-d55aeeec0b386966a194776f22434ad0bb81da4c.tar.gz scummvm-rg350-d55aeeec0b386966a194776f22434ad0bb81da4c.tar.bz2 scummvm-rg350-d55aeeec0b386966a194776f22434ad0bb81da4c.zip |
PEGASUS: Fix displaying the end message
-rwxr-xr-x | engines/pegasus/items/inventorypicture.cpp | 5 |
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); } |