aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2010-04-11 18:30:42 +0000
committerJohannes Schickel2010-04-11 18:30:42 +0000
commitb928da4418d7acf05cc1b0889b0142fee177681e (patch)
treecd1d4b8f19a6ea2c4fb2615db2f2e540a7866d05 /engines/kyra
parent19e620ba60cf08b8d039dff3777061da1a0b21b8 (diff)
downloadscummvm-rg350-b928da4418d7acf05cc1b0889b0142fee177681e.tar.gz
scummvm-rg350-b928da4418d7acf05cc1b0889b0142fee177681e.tar.bz2
scummvm-rg350-b928da4418d7acf05cc1b0889b0142fee177681e.zip
Setup and destroy a dummy cursor and palette in the Engine class.
The idea behind this is exactly the same as behind r48620, but it affects all engines, thus engine authors can now use CursorMan.replaceCursor without having to worry about possible memory leaks or the like. svn-id: r48626
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 0332e56e73..14463568ac 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -69,8 +69,6 @@ Screen::~Screen() {
for (uint i = 0; i < _palettes.size(); ++i)
delete _palettes[i];
-
- CursorMan.popCursor();
}
bool Screen::init() {
@@ -158,7 +156,6 @@ bool Screen::init() {
_animBlockPtr = NULL;
_animBlockSize = 0;
_mouseLockCount = 1;
- CursorMan.pushCursor(NULL, 0, 0, 0, 0, 0);
CursorMan.showMouse(false);
_forceFullUpdate = false;