diff options
author | Joost Peters | 2009-02-18 13:48:14 +0000 |
---|---|---|
committer | Joost Peters | 2009-02-18 13:48:14 +0000 |
commit | 2b8eba751e3bd88fb7f311bf2a8dc29111ac713e (patch) | |
tree | 0850036c8ccbbb38927570122255d76b96a522bf /graphics | |
parent | cd6a141815677e3f36a0497f3e23ec5fee44cdee (diff) | |
download | scummvm-rg350-2b8eba751e3bd88fb7f311bf2a8dc29111ac713e.tar.gz scummvm-rg350-2b8eba751e3bd88fb7f311bf2a8dc29111ac713e.tar.bz2 scummvm-rg350-2b8eba751e3bd88fb7f311bf2a8dc29111ac713e.zip |
Honour alpha bits in applyScreenShading() (used in "add game", "edit game" and "options" dialogs).
svn-id: r38478
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |