From 264ba4a9ec86dfe7a7fcc0cf02266e5950d102e5 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 31 Jan 2012 22:30:27 +0100 Subject: GUI: Keep dst alpha unchanged when blending colours --- graphics/VectorRendererSpec.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'graphics') 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)); } /******************************************************************** -- cgit v1.2.3