[Scummvm-cvs-logs] SF.net SVN: scummvm:[43620] scummvm/trunk/engines/scumm/gfx.cpp

robinwatts at users.sourceforge.net robinwatts at users.sourceforge.net
Sat Aug 22 00:55:19 CEST 2009


Revision: 43620
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43620&view=rev
Author:   robinwatts
Date:     2009-08-21 22:55:19 +0000 (Fri, 21 Aug 2009)

Log Message:
-----------
Updated comments.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/gfx.cpp

Modified: scummvm/trunk/engines/scumm/gfx.cpp
===================================================================
--- scummvm/trunk/engines/scumm/gfx.cpp	2009-08-21 22:48:54 UTC (rev 43619)
+++ scummvm/trunk/engines/scumm/gfx.cpp	2009-08-21 22:55:19 UTC (rev 43620)
@@ -784,6 +784,8 @@
 }
 
 void scale2x(byte *dst, int dstPitch, const byte *src, int srcPitch, int w, int h) {
+	/* dst and dstPitch should both be even. So the use of (void *) in
+	 * the following casts to avoid the unnecessary warning is valid. */
 	uint16 *dstL1 = (uint16 *)(void *)dst;
 	uint16 *dstL2 = (uint16 *)(void *)(dst + dstPitch);
 


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