aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BGame.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-09 04:21:48 +0200
committerEinar Johan Trøan Sømåen2012-07-09 04:21:48 +0200
commit99ed2b2ae1c57419fd22f766fec5784c9a01ea19 (patch)
tree4697752b4fec8176e21ee1cb5b01addc79104a8b /engines/wintermute/Base/BGame.cpp
parent01d6ff21212a2d323717a3a1dc9e7b72cdd6adb7 (diff)
downloadscummvm-rg350-99ed2b2ae1c57419fd22f766fec5784c9a01ea19.tar.gz
scummvm-rg350-99ed2b2ae1c57419fd22f766fec5784c9a01ea19.tar.bz2
scummvm-rg350-99ed2b2ae1c57419fd22f766fec5784c9a01ea19.zip
WINTERMUTE: Remove the rest of the WIN32-specifics
Diffstat (limited to 'engines/wintermute/Base/BGame.cpp')
-rw-r--r--engines/wintermute/Base/BGame.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index b227a56dc8..26afb8a7d9 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -3736,15 +3736,11 @@ bool CBGame::handleKeypress(Common::Event *event, bool printable) {
stopVideo();
return true;
}
-#ifdef __WIN32__
- // TODO: Do we really need to handle this in-engine?
- // handle Alt+F4 on windows
- if (event->type == Common::EVENT_KEYDOWN && event->kbd.keycode == Common::KEYCODE_F4 && (event->kbd.flags == Common::KBD_ALT)) {
+
+ if (event->type == Common::EVENT_QUIT) {
onWindowClose();
return true;
- //TODO
}
-#endif
if (event->type == Common::EVENT_KEYDOWN && event->kbd.keycode == Common::KEYCODE_RETURN && (event->kbd.flags == Common::KBD_ALT)) {
// TODO: Handle alt-enter as well as alt-return.