From 9a719851712845acaa6096bcb1c9ca2df2d46444 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 13 Nov 2011 21:05:01 +0100 Subject: 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. --- engines/drascula/interface.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3