From b928da4418d7acf05cc1b0889b0142fee177681e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 11 Apr 2010 18:30:42 +0000 Subject: 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 --- engines/kyra/screen.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines/kyra') 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; -- cgit v1.2.3