[Scummvm-cvs-logs] SF.net SVN: scummvm:[47358] scummvm/trunk/engines/mohawk/graphics.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Jan 18 19:45:31 CET 2010


Revision: 47358
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47358&view=rev
Author:   eriktorbjorn
Date:     2010-01-18 18:45:30 +0000 (Mon, 18 Jan 2010)

Log Message:
-----------
Fixed assertion when setting non 8-bit cursors in Myst, Masterpiece Edition.

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/graphics.cpp

Modified: scummvm/trunk/engines/mohawk/graphics.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.cpp	2010-01-18 18:03:09 UTC (rev 47357)
+++ scummvm/trunk/engines/mohawk/graphics.cpp	2010-01-18 18:45:30 UTC (rev 47358)
@@ -238,7 +238,7 @@
 		CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, 0);
 		CursorMan.replaceCursorPalette(data->_palette, 0, 256);
 	} else
-		CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, 0xFFFFFFFF, 1, &_pixelFormat);
+		CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, _pixelFormat.RGBToColor(255, 255, 255), 1, &_pixelFormat);
 
 	_vm->_needsUpdate = true;
 }


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