[Scummvm-cvs-logs] SF.net SVN: scummvm:[35856] scummvm/trunk/engines/groovie/cursor.cpp

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Wed Jan 14 03:08:44 CET 2009


Revision: 35856
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35856&view=rev
Author:   jvprat
Date:     2009-01-14 02:08:44 +0000 (Wed, 14 Jan 2009)

Log Message:
-----------
- Initialize the current cursor to an invalid one (this removes a glitch when loading from the launcher)
- Removed the _syst attribute in Cursor_t7g

Modified Paths:
--------------
    scummvm/trunk/engines/groovie/cursor.cpp

Modified: scummvm/trunk/engines/groovie/cursor.cpp
===================================================================
--- scummvm/trunk/engines/groovie/cursor.cpp	2009-01-13 23:22:47 UTC (rev 35855)
+++ scummvm/trunk/engines/groovie/cursor.cpp	2009-01-14 02:08:44 UTC (rev 35856)
@@ -33,7 +33,7 @@
 // Cursor Manager
 
 GrvCursorMan::GrvCursorMan(OSystem *system) :
-	_syst(system), _lastTime(0), _current(0), _cursor(NULL) {
+	_syst(system), _lastTime(0), _current(-1), _cursor(NULL) {
 }
 
 GrvCursorMan::~GrvCursorMan() {
@@ -80,19 +80,18 @@
 
 class Cursor_t7g : public Cursor {
 public:
-	Cursor_t7g(OSystem *system, uint8 *img, uint8 *pal);
+	Cursor_t7g(uint8 *img, uint8 *pal);
 
 	void enable();
 	void showFrame(uint16 frame);
 
 private:
-	OSystem *_syst;
 	byte *_img;
 	byte *_pal;
 };
 
-Cursor_t7g::Cursor_t7g(OSystem *system, uint8 *img, uint8 *pal) :
-	_syst(system), _pal(pal) {
+Cursor_t7g::Cursor_t7g(uint8 *img, uint8 *pal) :
+	_pal(pal) {
 
 	_width = img[0];
 	_height = img[1];
@@ -157,7 +156,7 @@
 
 	// Build the cursors
 	for (uint cursor = 0; cursor < NUM_STYLES; cursor++) {
-		Cursor *s = new Cursor_t7g(_syst, _images[_cursorImg[cursor]], _palettes[_cursorPal[cursor]]);
+		Cursor *s = new Cursor_t7g(_images[_cursorImg[cursor]], _palettes[_cursorPal[cursor]]);
 		_cursors.push_back(s);
 	}
 


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