From 4ab73a89abd66890391a977ebf4a23eb361a44a4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 19 Mar 2014 20:12:32 -0400 Subject: MADS: Preliminary code to show game cursor --- engines/mads/events.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engines/mads/events.cpp b/engines/mads/events.cpp index 182d6cbea7..32d3a09c18 100644 --- a/engines/mads/events.cpp +++ b/engines/mads/events.cpp @@ -85,7 +85,12 @@ void EventsManager::resetCursor() { } void EventsManager::changeCursor() { - warning("TODO: changeCursor"); + if (_cursorSprites) { + MSprite *cursor = _cursorSprites->getFrame(_cursorId - 1); + CursorMan.replaceCursor(cursor->getData(), cursor->w, cursor->h, 0, 0, + cursor->getTransparencyIndex()); + showCursor(); + } } void EventsManager::freeCursors() { -- cgit v1.2.3