[Scummvm-cvs-logs] SF.net SVN: scummvm:[39616] scummvm/trunk/engines/sci/gfx/operations.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Mar 22 23:02:25 CET 2009


Revision: 39616
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39616&view=rev
Author:   fingolfin
Date:     2009-03-22 22:02:25 +0000 (Sun, 22 Mar 2009)

Log Message:
-----------
SCI: Fixed nasty bug in simulate_stippled_line_draw, caught only thanks to warnings by the Wii compiler.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gfx/operations.cpp

Modified: scummvm/trunk/engines/sci/gfx/operations.cpp
===================================================================
--- scummvm/trunk/engines/sci/gfx/operations.cpp	2009-03-22 21:12:15 UTC (rev 39615)
+++ scummvm/trunk/engines/sci/gfx/operations.cpp	2009-03-22 22:02:25 UTC (rev 39616)
@@ -754,18 +754,18 @@
 	int stepwidth = (xl) ? driver->mode->xfact : driver->mode->yfact;
 	int dbl_stepwidth = 2 * stepwidth;
 	int linelength = (line_mode == GFX_LINE_MODE_FINE) ? stepwidth - 1 : 0;
-	int *posvar;
+	int16 *posvar;
 	int length;
 	int delta;
 	int length_left;
 
 	if (!xl) { // xl = 0, so we move along yl
-		posvar = (int *) &start.y;
+		posvar = &start.y;
 		length = yl;
 		delta = (yl < 0) ? -dbl_stepwidth : dbl_stepwidth;
 	} else {
 		assert(!yl);  // We don't do diagonals; that's not needed ATM.
-		posvar = (int *) &start.x;
+		posvar = &start.x;
 		length = xl;
 		delta = (xl < 0) ? -dbl_stepwidth : dbl_stepwidth;
 	}


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