summaryrefslogtreecommitdiff
path: root/include/vcl/RawBitmap.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/RawBitmap.hxx')
-rw-r--r--include/vcl/RawBitmap.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/RawBitmap.hxx b/include/vcl/RawBitmap.hxx
index 7fac44a166af..79cef7c47e00 100644
--- a/include/vcl/RawBitmap.hxx
+++ b/include/vcl/RawBitmap.hxx
@@ -47,7 +47,7 @@ public:
mpData[p++] = nColor.GetGreen();
mpData[p++] = nColor.GetBlue();
if (mnBitCount == 32)
- mpData[p] = nColor.GetTransparency();
+ mpData[p] = 255 - nColor.GetAlpha();
}
Color GetPixel(tools::Long nY, tools::Long nX) const
{