vcl/source/gdi/bmpfast.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3aaed31c05d6c5964c830b44550432cbfb7c15af
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Fri Oct 9 20:30:18 2020 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Mon Oct 12 15:10:10 2020 +0200

    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.lu...@collabora.com>

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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to