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

joostp at users.sourceforge.net joostp at users.sourceforge.net
Wed Feb 18 14:48:14 CET 2009


Revision: 38478
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38478&view=rev
Author:   joostp
Date:     2009-02-18 13:48:14 +0000 (Wed, 18 Feb 2009)

Log Message:
-----------
Honour alpha bits in applyScreenShading() (used in "add game", "edit game" and "options" dialogs).

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

Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp	2009-02-18 13:39:53 UTC (rev 38477)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp	2009-02-18 13:48:14 UTC (rev 38478)
@@ -367,7 +367,7 @@
 	uint lum;
 
 	const uint32 shiftMask = (uint32)~(
-		(1 << _format.rShift) | (1 << _format.gShift) | (1 << _format.bShift)) >> 1;
+		(1 << _format.rShift) | (1 << _format.gShift) | (1 << _format.bShift) | (_format.aLoss == 8 ? 0 : (1 << _format.aShift))) >> 1;
 
 	if (shadingStyle == GUI::ThemeEngine::kShadingDim) {
 


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