From fdd220e9f77658d765ecf2c9d2e5fb4f022663ea Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 2 Jun 2015 19:08:40 +0200 Subject: SHERLOCK: Fix Scalpel cursor regressions There was no magnifying glass cursor, and the hourglass cursor wasn't animated. --- engines/sherlock/events.cpp | 2 +- engines/sherlock/scalpel/scalpel_scene.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp index b238605e13..216ef158a3 100644 --- a/engines/sherlock/events.cpp +++ b/engines/sherlock/events.cpp @@ -77,7 +77,7 @@ void Events::setCursor(const Graphics::Surface &src) { void Events::animateCursorIfNeeded() { if (_cursorId >= WAIT && _cursorId < (WAIT + 3)) { - CursorId newId = (WAIT + 2) ? WAIT : (CursorId)((int)_cursorId + 1); + CursorId newId = (_cursorId == WAIT + 2) ? WAIT : (CursorId)((int)_cursorId + 1); setCursor(newId); } } diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp index b6a42419d8..c2fbd6e2fb 100644 --- a/engines/sherlock/scalpel/scalpel_scene.cpp +++ b/engines/sherlock/scalpel/scalpel_scene.cpp @@ -60,6 +60,7 @@ void ScalpelScene::doBgAnimCheckCursor() { Sound &sound = *_vm->_sound; UserInterface &ui = *_vm->_ui; Common::Point mousePos = events.mousePos(); + events.animateCursorIfNeeded(); if (ui._menuMode == LOOK_MODE) { if (mousePos.y > CONTROLS_Y1) @@ -94,6 +95,8 @@ void ScalpelScene::doBgAnim() { Screen &screen = *_vm->_screen; Talk &talk = *_vm->_talk; + doBgAnimCheckCursor(); + screen.setDisplayBounds(Common::Rect(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCENE_HEIGHT)); talk._talkToAbort = false; -- cgit v1.2.3