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/cine/gfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/cine/gfx.cpp') diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index 3c365e6e86..cc8f9ffe07 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -27,6 +27,8 @@ #include "common/system.h" +#include "graphics/cursorman.h" + namespace Cine { byte *screenBuffer; @@ -116,7 +118,7 @@ void setMouseCursor(int cursor) { } ++src; } - g_system->setMouseCursor(mouseCursor, 16, 16, mc->hotspotX, mc->hotspotY); + CursorMan.replaceCursor(mouseCursor, 16, 16, mc->hotspotX, mc->hotspotY); currentMouseCursor = cursor; } } -- cgit v1.2.3