From 874be3cfb49027df093d984f0ff1b98ddd13708f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 5 May 2008 18:50:42 +0000 Subject: Implemented opcode 91: o3_daggerWarning. svn-id: r31882 --- engines/kyra/kyra_v2.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/kyra/kyra_v2.cpp') 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; -- cgit v1.2.3