diff options
| author | Johannes Schickel | 2009-12-26 10:43:37 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2009-12-26 10:43:37 +0000 | 
| commit | bc0da4dce86f4cefd019ecb034d57f6c3d11f601 (patch) | |
| tree | 1df00a93f896d51555a5e7c60a35211a72962cda | |
| parent | c78c10b9ee4febba16614782c90975e7c85de36f (diff) | |
| download | scummvm-rg350-bc0da4dce86f4cefd019ecb034d57f6c3d11f601.tar.gz scummvm-rg350-bc0da4dce86f4cefd019ecb034d57f6c3d11f601.tar.bz2 scummvm-rg350-bc0da4dce86f4cefd019ecb034d57f6c3d11f601.zip  | |
Change teenagent engine to use CursorMan instead of using OSystem directly.
svn-id: r46576
| -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();  | 
