aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:16:53 +0000
committerEugene Sandulenko2010-06-15 10:16:53 +0000
commit7746321ed62d80c918a3687b595405e07e80e2aa (patch)
treea2cea8f6a868f83b21ba8b50160438ea52c3e848
parent5d72a614ec75b875e950ecd62222bac3008945bc (diff)
downloadscummvm-rg350-7746321ed62d80c918a3687b595405e07e80e2aa.tar.gz
scummvm-rg350-7746321ed62d80c918a3687b595405e07e80e2aa.tar.bz2
scummvm-rg350-7746321ed62d80c918a3687b595405e07e80e2aa.zip
SAGA: Fix bug #1970191.
Bug #1970191: "IHNM: Psychic Profile problem". Still there is a slight artefact. When the profile has 2 pages and is skipped, there are two fade-ins in a row. It could be checked by analysing event queue. svn-id: r49698
-rw-r--r--engines/saga/interface.cpp1
-rw-r--r--engines/saga/scene.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 70e6aa0c6b..c4b4688785 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -1861,6 +1861,7 @@ void Interface::update(const Point& mousePoint, int updateFlag) {
if (updateFlag & UPDATE_MOUSECLICK) {
if (!_vm->isIHNMDemo()) {
_vm->_scene->clearPsychicProfile();
+ _vm->_script->wakeUpThreads(kWaitTypeDelay);
} else {
setMode(kPanelConverse);
_vm->_scene->_textList.clear();
diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp
index 1b2a600729..8cb632ae91 100644
--- a/engines/saga/scene.cpp
+++ b/engines/saga/scene.cpp
@@ -1442,6 +1442,8 @@ void Scene::showPsychicProfile(const char *text) {
_vm->_interface->setMode(kPanelPlacard);
_vm->_gfx->savePalette();
+ _vm->_events->clearList();
+
event.type = kEvTOneshot;
event.code = kCursorEvent;
event.op = kEventHide;