SCI: kPortrait - abort on mouse presses only

svn-id: r47225
This commit is contained in:
Martin Kiewitz 2010-01-10 13:22:45 +00:00
parent 4122e411d0
commit bda3fc940c

View File

@ -172,8 +172,10 @@ void Portrait::doit(Common::Point position, uint16 resourceId, uint16 noun, uint
do {
_gui->wait(1);
curEvent = _event->get(SCI_EVENT_ANY);
if (curEvent.type == SCI_EVENT_MOUSE_PRESS)
userAbort = true;
curPosition = _audio->getAudioPosition();
} while ((curPosition != -1) && (curPosition < timerPosition) && (curEvent.type == SCI_EVENT_NONE));
} while ((curPosition != -1) && (curPosition < timerPosition) && (!userAbort));
if (syncCue != 0xFFFF) {
// Display animation bitmap
@ -186,12 +188,6 @@ void Portrait::doit(Common::Point position, uint16 resourceId, uint16 noun, uint
warning("kPortrait: sync information tried to draw non-existant %d", syncCue);
}
}
switch (curEvent.type) {
case SCI_EVENT_MOUSE_RELEASE:
case SCI_EVENT_MOUSE_PRESS:
userAbort = true;
}
}
if (userAbort)