diff options
-rw-r--r-- | engines/teenagent/teenagent.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 3b2a88fd52..f33bf9b97e 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -36,6 +36,8 @@ #include "teenagent/music.h" #include "teenagent/console.h" +#include "graphics/cursorman.h" + namespace TeenAgent { TeenAgentEngine::TeenAgentEngine(OSystem *system, const ADGameDescription *gd) : Engine(system), action(kActionNone), _gameDescription(gd) { @@ -171,8 +173,6 @@ void TeenAgentEngine::init() { } } - - void TeenAgentEngine::deinit() { _mixer->stopAll(); delete scene; @@ -183,6 +183,7 @@ void TeenAgentEngine::deinit() { //music = NULL; use_hotspots.clear(); Resources::instance()->deinit(); + CursorMan.popCursor(); } Common::Error TeenAgentEngine::loadGameState(int slot) { @@ -260,7 +261,8 @@ Common::Error TeenAgentEngine::run() { init(); - _system->setMouseCursor(res->dseg.ptr(0x00da), 8, 12, 0, 0, 1); + CursorMan.pushCursor(res->dseg.ptr(0x00da), 8, 12, 0, 0, 1); + CursorMan.showMouse(true); syncSoundSettings(); |