[Scummvm-cvs-logs] SF.net SVN: scummvm:[36185] scummvm/trunk/graphics/VectorRendererSpec.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Feb 1 21:52:53 CET 2009


Revision: 36185
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36185&view=rev
Author:   thebluegr
Date:     2009-02-01 20:52:53 +0000 (Sun, 01 Feb 2009)

Log Message:
-----------
Silenced MSVC warning (MSVC is being silly here...)

Modified Paths:
--------------
    scummvm/trunk/graphics/VectorRendererSpec.cpp

Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp	2009-02-01 20:35:51 UTC (rev 36184)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp	2009-02-01 20:52:53 UTC (rev 36185)
@@ -393,6 +393,7 @@
 blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha)	{
 	register int idst = *ptr;
 	register int isrc = color;
+	int rightShift = 8 - PixelFormat::kAlphaBits;
 
 	*ptr = (PixelType)(
 		(PixelFormat::kRedMask & ((idst & PixelFormat::kRedMask) +
@@ -405,7 +406,7 @@
 		((int)(((int)(isrc & PixelFormat::kBlueMask) -
 		(int)(idst & PixelFormat::kBlueMask)) * alpha) >> 8))) |
 		(PixelFormat::kAlphaMask & ((idst & PixelFormat::kAlphaMask) +
-                ((alpha >> (8 - PixelFormat::kAlphaBits)) << PixelFormat::kAlphaShift) -
+                ((alpha >> rightShift) << PixelFormat::kAlphaShift) -
                 (((int)(idst & PixelFormat::kAlphaMask) * alpha) >> 8))));
 }
 


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