[Scummvm-cvs-logs] SF.net SVN: scummvm:[42935] scummvm/trunk/graphics/VectorRendererSpec.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Jul 30 18:51:53 CEST 2009
Revision: 42935
http://scummvm.svn.sourceforge.net/scummvm/?rev=42935&view=rev
Author: lordhoto
Date: 2009-07-30 16:51:53 +0000 (Thu, 30 Jul 2009)
Log Message:
-----------
Fixed missing clearing of the low bit of the alpha mask in the "dim" screen shading function.
Modified Paths:
--------------
scummvm/trunk/graphics/VectorRendererSpec.cpp
Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-07-30 16:43:25 UTC (rev 42934)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-07-30 16:51:53 UTC (rev 42935)
@@ -367,7 +367,9 @@
uint lum;
// Mask to clear the last bit of every color component and all unused bits
- const uint32 colorMask = ~((1 << _format.rShift) | (1 << _format.gShift) | (1 << _format.bShift) | ~(_alphaMask | _redMask | _greenMask | _blueMask));
+ const uint32 colorMask = ~((1 << _format.rShift) | (1 << _format.gShift) | (1 << _format.bShift) // R/G/B components
+ | (_format.aLoss == 8 ? 0 : (1 << _format.aShift)) // Alpha component
+ | ~(_alphaMask | _redMask | _greenMask | _blueMask)); // All unused bits
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