From 8062eb6ec33e32012da28f0cd06b8f9334c26937 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 25 May 2006 22:51:42 +0000 Subject: Set and show/hide mouse cursors through a "cursor manager" (analogous to the recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639 --- engines/scumm/cursor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/scumm/cursor.cpp') diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp index 2e624144ad..2371ce860c 100644 --- a/engines/scumm/cursor.cpp +++ b/engines/scumm/cursor.cpp @@ -23,6 +23,7 @@ #include "common/stdafx.h" #include "common/system.h" #include "common/util.h" +#include "graphics/cursorman.h" #include "graphics/paletteman.h" #include "scumm/bomp.h" #include "scumm/charset.h" @@ -102,7 +103,7 @@ void ScummEngine_v6::setCursorTransparency(int a) { void ScummEngine::updateCursor() { const int transColor = (_game.heversion >= 80) ? 5 : 255; - _system->setMouseCursor(_grabbedCursor, _cursor.width, _cursor.height, + CursorMan.replaceCursor(_grabbedCursor, _cursor.width, _cursor.height, _cursor.hotspotX, _cursor.hotspotY, (_game.platform == Common::kPlatformNES ? _grabbedCursor[63] : transColor), (_game.heversion == 70 ? 2 : 1)); -- cgit v1.2.3