[Scummvm-cvs-logs] SF.net SVN: scummvm: [29658] scummvm/trunk/engines/agi/picture.cpp

darkfiber at users.sourceforge.net darkfiber at users.sourceforge.net
Thu Nov 29 00:42:09 CET 2007


Revision: 29658
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29658&view=rev
Author:   darkfiber
Date:     2007-11-28 15:42:08 -0800 (Wed, 28 Nov 2007)

Log Message:
-----------
Fixes Mickey and Gold rush. Not the cleanest fix but tested and works

Modified Paths:
--------------
    scummvm/trunk/engines/agi/picture.cpp

Modified: scummvm/trunk/engines/agi/picture.cpp
===================================================================
--- scummvm/trunk/engines/agi/picture.cpp	2007-11-28 15:00:41 UTC (rev 29657)
+++ scummvm/trunk/engines/agi/picture.cpp	2007-11-28 23:42:08 UTC (rev 29658)
@@ -341,9 +341,9 @@
 
 	static const uint8 circle_list[] = {0, 1, 4, 9, 16, 25, 37, 50};
 
-	static const uint16 circle_data[] =
+	static uint16 circle_data[] =
 		{0x8000,
-		0x0000, 0xE000, 0x0000,
+		0xE000, 0xE000, 0xE000,
 		0x7000, 0xF800, 0x0F800, 0x0F800, 0x7000,
 		0x3800, 0x7C00, 0x0FE00, 0x0FE00, 0x0FE00, 0x7C00, 0x3800,
 		0x1C00, 0x7F00, 0x0FF80, 0x0FF80, 0x0FF80, 0x0FF80, 0x0FF80, 0x7F00, 0x1C00,
@@ -369,6 +369,13 @@
 
 	circle_ptr = &circle_data[circle_list[pen_size]];
 
+	// SGEORGE : Fix v3 picture data for drawing circles. Manifests in goldrush
+	if(_pictureVersion == 3)
+	{
+		circle_data[1] = 0;
+		circle_data[3] = 0;
+	}
+
 	// setup the X position
 	// = pen_x - pen.size/2
 


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