[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.190,2.191

Travis Howell kirben at users.sourceforge.net
Mon Aug 18 21:29:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17566/scumm

Modified Files:
	gfx.cpp 
Log Message:

Fix cursor cycle color for v1 games


Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.190
retrieving revision 2.191
diff -u -d -r2.190 -r2.191
--- gfx.cpp	19 Aug 2003 04:15:14 -0000	2.190
+++ gfx.cpp	19 Aug 2003 04:28:52 -0000	2.191
@@ -151,10 +151,16 @@
 /*
  * Mouse cursor cycle colors (for the default crosshair).
  */
+static const byte default_v1_cursor_colors[4] = {
+	1, 1, 12, 11
+};
+
 static const byte default_cursor_colors[4] = {
 	15, 15, 7, 8
 };
 
+
+
 static const uint16 default_cursor_images[5][16] = {
 	/* cross-hair */
 	{ 0x0080, 0x0080, 0x0080, 0x0080, 0x0080, 0x0080, 0x0000, 0x7e3f,
@@ -3502,7 +3508,10 @@
 
 	memset(_grabbedCursor, 0xFF, sizeof(_grabbedCursor));
 
-	color = default_cursor_colors[idx];
+	if (_version == 1)
+		color = default_v1_cursor_colors[idx];
+	else
+		color = default_cursor_colors[idx];
 
 	// FIXME: None of the stock cursors are right for Loom. Why is that?
 





More information about the Scummvm-git-logs mailing list