aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-09-29 05:46:57 +0000
committerTorbjörn Andersson2007-09-29 05:46:57 +0000
commit74ce7c620b2ced5d4a6fe1a541657567b2314513 (patch)
tree9718728f1daedb273823b6b5dcd0a2ecf6047d51 /engines/saga
parent387f8345cd91924dd43ba32f2a7e50a621b0e8ff (diff)
downloadscummvm-rg350-74ce7c620b2ced5d4a6fe1a541657567b2314513.tar.gz
scummvm-rg350-74ce7c620b2ced5d4a6fe1a541657567b2314513.tar.bz2
scummvm-rg350-74ce7c620b2ced5d4a6fe1a541657567b2314513.zip
Allow the user to change scalers, fullscreen mode, etc. without terminating the
IHNM intro. In other words, don't terminate the intro just because the user presses a modifier key. The original didn't either. svn-id: r29127
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/ihnm_introproc.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/saga/ihnm_introproc.cpp b/engines/saga/ihnm_introproc.cpp
index fcf69d1bd1..1819dc71a7 100644
--- a/engines/saga/ihnm_introproc.cpp
+++ b/engines/saga/ihnm_introproc.cpp
@@ -141,10 +141,15 @@ bool Scene::checkKey() {
while (_vm->_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_QUIT:
+ res = true;
_vm->shutDown();
- // fallthrough
+ break;
case Common::EVENT_KEYDOWN:
- res = true;
+ // Don't react to modifier keys alone. The original did
+ // non, and the user may want to change scaler without
+ // terminating the intro.
+ if (event.kbd.ascii)
+ res = true;
break;
default:
break;