From 45f95cbc8b427e005daeaf9d57322dd2975a7cf9 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 14 Jan 2013 21:07:20 +0100 Subject: SCI: Minor formatting fixes. --- engines/sci/event.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp index 90351a4d5e..7318fe2f68 100644 --- a/engines/sci/event.cpp +++ b/engines/sci/event.cpp @@ -160,10 +160,9 @@ SciEvent EventManager::getScummVMEvent() { noEvent.mousePos = input.mousePos = mousePos; - if (!found || ev.type == Common::EVENT_MOUSEMOVE) - { + if (!found || ev.type == Common::EVENT_MOUSEMOVE) { int modifiers = em->getModifierState(); - noEvent.modifiers = + noEvent.modifiers = ((modifiers & Common::KBD_ALT) ? SCI_KEYMOD_ALT : 0) | ((modifiers & Common::KBD_CTRL) ? SCI_KEYMOD_CTRL : 0) | ((modifiers & Common::KBD_SHIFT) ? SCI_KEYMOD_LSHIFT | SCI_KEYMOD_RSHIFT : 0); -- cgit v1.2.3