diff options
author | Johannes Schickel | 2008-05-05 18:50:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-05 18:50:42 +0000 |
commit | 874be3cfb49027df093d984f0ff1b98ddd13708f (patch) | |
tree | eae893389629d24401ef8d89d49e1bb3d93a1b30 /engines/kyra/kyra_v2.cpp | |
parent | c26e62e288f7454d47e201216c1cd98ee4cb3607 (diff) | |
download | scummvm-rg350-874be3cfb49027df093d984f0ff1b98ddd13708f.tar.gz scummvm-rg350-874be3cfb49027df093d984f0ff1b98ddd13708f.tar.bz2 scummvm-rg350-874be3cfb49027df093d984f0ff1b98ddd13708f.zip |
Implemented opcode 91: o3_daggerWarning.
svn-id: r31882
Diffstat (limited to 'engines/kyra/kyra_v2.cpp')
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index e981522662..176f8e4e2f 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -124,7 +124,6 @@ int KyraEngine_v2::checkInput(Button *buttonList, bool mainLoop) { Common::Point pos = getMousePos(); _mouseX = pos.x; _mouseY = pos.y; - screen()->updateScreen(); } break; case Common::EVENT_LBUTTONDOWN: @@ -132,7 +131,7 @@ int KyraEngine_v2::checkInput(Button *buttonList, bool mainLoop) { Common::Point pos = getMousePos(); _mouseX = pos.x; _mouseY = pos.y; - keys = event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800); + keys = (event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800)); breakLoop = true; } break; @@ -174,8 +173,11 @@ void KyraEngine_v2::updateInput() { _eventList.push_back(Event(event, true)); break; - case Common::EVENT_LBUTTONUP: case Common::EVENT_MOUSEMOVE: + screen_v2()->updateScreen(); + // fall through + + case Common::EVENT_LBUTTONUP: _eventList.push_back(event); break; |