From f41b49625511c68dadd5d0d708f31b98576c297f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 30 Jul 2009 16:51:53 +0000 Subject: Fixed missing clearing of the low bit of the alpha mask in the "dim" screen shading function. svn-id: r42935 --- graphics/VectorRendererSpec.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics/VectorRendererSpec.cpp') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index 5e75ad6a7a..a575ee8b94 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -367,7 +367,9 @@ applyScreenShading(GUI::ThemeEngine::ShadingStyle shadingStyle) { 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) { -- cgit v1.2.3