aboutsummaryrefslogtreecommitdiff
path: root/engines/griffon
diff options
context:
space:
mode:
authorEugene Sandulenko2019-11-15 00:52:41 +0100
committerEugene Sandulenko2019-11-15 00:52:58 +0100
commitf113a00141940477db0bd9aeffc554fd8a72c57e (patch)
tree2fefd32227460591e2e314829b80aef8877f816f /engines/griffon
parent4aaff742fc83c461f07bb205746258455935a3a2 (diff)
downloadscummvm-rg350-f113a00141940477db0bd9aeffc554fd8a72c57e.tar.gz
scummvm-rg350-f113a00141940477db0bd9aeffc554fd8a72c57e.tar.bz2
scummvm-rg350-f113a00141940477db0bd9aeffc554fd8a72c57e.zip
GRIFFON: Allow skipping logos with ESC
Diffstat (limited to 'engines/griffon')
-rw-r--r--engines/griffon/cutscenes.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/griffon/cutscenes.cpp b/engines/griffon/cutscenes.cpp
index c4612d4993..b80481ce5f 100644
--- a/engines/griffon/cutscenes.cpp
+++ b/engines/griffon/cutscenes.cpp
@@ -155,7 +155,13 @@ void GriffonEngine::showLogos() {
g_system->copyRectToScreen(_videoBuffer->getPixels(), _videoBuffer->pitch, 0, 0, _videoBuffer->w, _videoBuffer->h);
g_system->updateScreen();
- POLL_AND_CHECK_QUIT();
+ if (g_system->getEventManager()->pollEvent(_event)) {
+
+ if (_event.kbd.keycode == Common::KEYCODE_ESCAPE)
+ return;
+
+ CHECK_QUIT();
+ }
_ticksPassed = _ticks;
_ticks = g_system->getMillis();