summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-10-09 20:30:18 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-10-12 15:10:10 +0200
commit3aaed31c05d6c5964c830b44550432cbfb7c15af (patch)
treed30f7f558a4c3e664262a1d0198e2e3caa351b19
parent6036b2486cdc5ba8eac8636b2e087658e3550586 (diff)
the alpha used by our 32bpp formats is true alpha, not transparency
Apparently this code path has never been tested. Change-Id: I112543ad4f403bb50e5789ceacf57e0c009a9ef7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104128 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--vcl/source/gdi/bmpfast.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index 1fe9a9ae543a..76a5239d4ceb 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -62,7 +62,7 @@ public:
PIXBYTE GetRed() const { return mpPixel[0]; }
PIXBYTE GetGreen() const { return mpPixel[1]; }
PIXBYTE GetBlue() const { return mpPixel[2]; }
- static PIXBYTE GetAlpha() { return 0; }
+ static PIXBYTE GetAlpha() { return 255; }
static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const
@@ -82,7 +82,7 @@ public:
PIXBYTE GetRed() const { return mpPixel[2]; }
PIXBYTE GetGreen() const { return mpPixel[1]; }
PIXBYTE GetBlue() const { return mpPixel[0]; }
- static PIXBYTE GetAlpha() { return 0; }
+ static PIXBYTE GetAlpha() { return 255; }
static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const