From 2b8eba751e3bd88fb7f311bf2a8dc29111ac713e Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Wed, 18 Feb 2009 13:48:14 +0000 Subject: Honour alpha bits in applyScreenShading() (used in "add game", "edit game" and "options" dialogs). svn-id: r38478 --- graphics/VectorRendererSpec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index d358bde1aa..8f4f0017ee 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -367,7 +367,7 @@ applyScreenShading(GUI::ThemeEngine::ShadingStyle shadingStyle) { 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) { -- cgit v1.2.3