aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorJohannes Schickel2011-11-13 21:05:01 +0100
committerJohannes Schickel2011-11-13 21:05:01 +0100
commit9a719851712845acaa6096bcb1c9ca2df2d46444 (patch)
tree5c93f982c32ac735bc0369df411c2d7ae8a3e821 /engines/drascula
parent7600751525441a1f68ebe89ec5d3756b55a17c3f (diff)
downloadscummvm-rg350-9a719851712845acaa6096bcb1c9ca2df2d46444.tar.gz
scummvm-rg350-9a719851712845acaa6096bcb1c9ca2df2d46444.tar.bz2
scummvm-rg350-9a719851712845acaa6096bcb1c9ca2df2d46444.zip
DRASCULA: Improve confirm quit screen.
Now the confirm quit screen still updates the room and allows mouse movement. For me that removes the feeling that ScummVM locked up when I pressed escape.
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/interface.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/drascula/interface.cpp b/engines/drascula/interface.cpp
index e3a97087c0..5e4f7a1541 100644
--- a/engines/drascula/interface.cpp
+++ b/engines/drascula/interface.cpp
@@ -100,9 +100,18 @@ bool DrasculaEngine::confirmExit() {
key = getScan();
if (key != 0)
break;
+
+ // This gives a better feedback to the user when he is asked to
+ // confirm whether he wants to quit. It now still updates the room and
+ // shows mouse cursor movement. Hopefully it will work in all
+ // locations of the game.
+ updateRoom();
+ color_abc(kColorRed);
+ centerText(_textsys[1], 160, 87);
+ updateScreen();
}
- if (key == Common::KEYCODE_ESCAPE) {
+ if (key == Common::KEYCODE_ESCAPE || shouldQuit()) {
stopMusic();
return false;
}