[Scummvm-cvs-logs] SF.net SVN: scummvm: [33017] scummvm/trunk/engines/gob/driver_vga.cpp

tramboi at users.sourceforge.net tramboi at users.sourceforge.net
Sat Jul 12 22:35:44 CEST 2008


Revision: 33017
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33017&view=rev
Author:   tramboi
Date:     2008-07-12 13:35:44 -0700 (Sat, 12 Jul 2008)

Log Message:
-----------
Minor constness fix to help with aliasing

Modified Paths:
--------------
    scummvm/trunk/engines/gob/driver_vga.cpp

Modified: scummvm/trunk/engines/gob/driver_vga.cpp
===================================================================
--- scummvm/trunk/engines/gob/driver_vga.cpp	2008-07-12 18:17:11 UTC (rev 33016)
+++ scummvm/trunk/engines/gob/driver_vga.cpp	2008-07-12 20:35:44 UTC (rev 33017)
@@ -112,7 +112,7 @@
 	if ((width < 1) || (height < 1))
 		return;
 
-	byte *srcPos = source->getVidMem() + (top * source->getWidth()) + left;
+	const byte *srcPos = source->getVidMem() + (top * source->getWidth()) + left;
 	byte *destPos = dest->getVidMem() + (y * dest->getWidth()) + x;
 
 	uint32 size = width * height;


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