diff options
| author | Willem Jan Palenstijn | 2012-01-31 22:30:27 +0100 |
|---|---|---|
| committer | Willem Jan Palenstijn | 2012-02-20 22:17:33 +0100 |
| commit | 264ba4a9ec86dfe7a7fcc0cf02266e5950d102e5 (patch) | |
| tree | f09001e2f2f24fea05db6d30f92e1d241afbeb9a /graphics | |
| parent | 2957321903a964113bf0b0babb89e835828fd00b (diff) | |
| download | scummvm-rg350-264ba4a9ec86dfe7a7fcc0cf02266e5950d102e5.tar.gz scummvm-rg350-264ba4a9ec86dfe7a7fcc0cf02266e5950d102e5.tar.bz2 scummvm-rg350-264ba4a9ec86dfe7a7fcc0cf02266e5950d102e5.zip | |
GUI: Keep dst alpha unchanged when blending colours
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/VectorRendererSpec.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index d24e5b7416..efe38cbc5d 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -524,9 +524,7 @@ blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) { (_blueMask & ((idst & _blueMask) + ((int)(((int)(isrc & _blueMask) - (int)(idst & _blueMask)) * alpha) >> 8))) | - (_alphaMask & ((idst & _alphaMask) + - ((alpha >> _format.aLoss) << _format.aShift) - - (((int)(idst & _alphaMask) * alpha) >> 8)))); + (idst & _alphaMask)); } /******************************************************************** |
