aboutsummaryrefslogtreecommitdiff
path: root/engines/queen
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-25 22:51:42 +0000
committerTorbjörn Andersson2006-05-25 22:51:42 +0000
commit8062eb6ec33e32012da28f0cd06b8f9334c26937 (patch)
tree088c83206fbb0e4feea93ebeada0a505599572bb /engines/queen
parentd56c65bf4a47007dc874b70eb04be9ed7de27b01 (diff)
downloadscummvm-rg350-8062eb6ec33e32012da28f0cd06b8f9334c26937.tar.gz
scummvm-rg350-8062eb6ec33e32012da28f0cd06b8f9334c26937.tar.bz2
scummvm-rg350-8062eb6ec33e32012da28f0cd06b8f9334c26937.zip
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
Diffstat (limited to 'engines/queen')
-rw-r--r--engines/queen/display.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/queen/display.cpp b/engines/queen/display.cpp
index d66f7a6934..237c42e86e 100644
--- a/engines/queen/display.cpp
+++ b/engines/queen/display.cpp
@@ -22,8 +22,10 @@
#include "common/stdafx.h"
#include "common/system.h"
-#include "queen/display.h"
+#include "graphics/cursorman.h"
+
+#include "queen/display.h"
#include "queen/input.h"
#include "queen/logic.h"
#include "queen/queen.h"
@@ -780,11 +782,11 @@ void Display::setDirtyBlock(uint16 x, uint16 y, uint16 w, uint16 h) {
}
void Display::setMouseCursor(uint8 *buf, uint16 w, uint16 h) {
- _system->setMouseCursor(buf, w, h, 1, 1, 0);
+ CursorMan.replaceCursor(buf, w, h, 1, 1, 0);
}
void Display::showMouseCursor(bool show) {
- _system->showMouse(show);
+ CursorMan.showMouse(show);
}
void Display::initFont() {