mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
SCI: kPortrait - abort on mouse presses only
svn-id: r47225
This commit is contained in:
parent
4122e411d0
commit
bda3fc940c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user