[Scummvm-cvs-logs] SF.net SVN: scummvm: [26344] scummvm/trunk/engines/touche/touche.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Apr 1 15:16:30 CEST 2007


Revision: 26344
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26344&view=rev
Author:   eriktorbjorn
Date:     2007-04-01 06:16:29 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Use the cursor manager instead of calling the backend functions directly.
(Maybe the backend functions ought to be protected?)

Modified Paths:
--------------
    scummvm/trunk/engines/touche/touche.cpp

Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp	2007-04-01 13:13:15 UTC (rev 26343)
+++ scummvm/trunk/engines/touche/touche.cpp	2007-04-01 13:16:29 UTC (rev 26344)
@@ -25,6 +25,7 @@
 #include "common/events.h"
 #include "common/system.h"
 
+#include "graphics/cursorman.h"
 #include "sound/mididrv.h"
 
 #include "touche/midi.h"
@@ -1389,14 +1390,14 @@
 
 void ToucheEngine::showCursor(bool show) {
 	debugC(9, kDebugEngine, "ToucheEngine::showCursor()");
-	_system->showMouse(show);
+	CursorMan.showMouse(show);
 }
 
 void ToucheEngine::setCursor(int num) {
 	debugC(9, kDebugEngine, "ToucheEngine::setCursor(%d)", num);
 	_currentCursorObject = num;
 	res_loadImage(num, _mouseData);
-	_system->setMouseCursor(_mouseData, kCursorWidth, kCursorHeight, kCursorWidth / 2, kCursorHeight / 2, 0);
+	CursorMan.replaceCursor(_mouseData, kCursorWidth, kCursorHeight, kCursorWidth / 2, kCursorHeight / 2, 0);
 }
 
 void ToucheEngine::setDefaultCursor(int num) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list