[Scummvm-cvs-logs] SF.net SVN: scummvm:[43757] scummvm/trunk/graphics/cursorman.h

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Wed Aug 26 13:19:28 CEST 2009


Revision: 43757
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43757&view=rev
Author:   dreammaster
Date:     2009-08-26 11:19:28 +0000 (Wed, 26 Aug 2009)

Log Message:
-----------
Fix to correctly store a cursor's key colour, fixing key colour being lost when cursors are popped

Modified Paths:
--------------
    scummvm/trunk/graphics/cursorman.h

Modified: scummvm/trunk/graphics/cursorman.h
===================================================================
--- scummvm/trunk/graphics/cursorman.h	2009-08-26 10:01:05 UTC (rev 43756)
+++ scummvm/trunk/graphics/cursorman.h	2009-08-26 11:19:28 UTC (rev 43757)
@@ -185,11 +185,11 @@
 			 else 
 				_format = *format;
 			_size = w * h * _format.bytesPerPixel;
-			_keycolor &= ((1 << (_format.bytesPerPixel << 3)) - 1);
+			_keycolor = keycolor & ((1 << (_format.bytesPerPixel << 3)) - 1);
 #else
 			_format = Graphics::PixelFormat::createFormatCLUT8();
 			_size = w * h;
-			_keycolor &= 0xFF;
+			_keycolor = keycolor & 0xFF;
 #endif
 			_data = new byte[_size];
 			if (data && _data)


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