diff options
Diffstat (limited to 'vcl/source/outdev/pixel.cxx')
-rw-r--r-- | vcl/source/outdev/pixel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/pixel.cxx b/vcl/source/outdev/pixel.cxx index dcb86f27cab8..8c97aeb43237 100644 --- a/vcl/source/outdev/pixel.cxx +++ b/vcl/source/outdev/pixel.cxx @@ -44,7 +44,7 @@ Color OutputDevice::GetPixel(const Point& rPoint) const if (mpAlphaVDev) { Color aAlphaColor = mpAlphaVDev->GetPixel(rPoint); - aColor.SetAlpha(255 - aAlphaColor.GetBlue()); + aColor.SetAlpha(aAlphaColor.GetBlue()); } } } @@ -110,7 +110,7 @@ void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor ) if (mpAlphaVDev) { - Color aAlphaColor(255 - rColor.GetAlpha(), 255 - rColor.GetAlpha(), 255 - rColor.GetAlpha()); + Color aAlphaColor(rColor.GetAlpha(), rColor.GetAlpha(), rColor.GetAlpha()); mpAlphaVDev->DrawPixel(rPt, aAlphaColor); } } |