[Libreoffice-commits] core.git: vcl/qt5

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 6 13:22:57 UTC 2021


 vcl/qt5/Qt5Graphics_GDI.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e7424ff25a724ea5bb54b2282d5c3cbf74c92053
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Apr 6 13:18:00 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Apr 6 15:22:17 2021 +0200

    tdf#141504 qt5: ugly images
    
    regression from
        commit c181e510c5f5e74f1f6824b64637849aace9ae63
        Date:   Thu Jan 7 09:46:07 2021 +0200
        convert internal bitmap formats transparency->alpha
    
    Change-Id: I858ba2c986bdac6f7e26145efde253485e8b2281
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113660
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx
index 9cc2821a8ad7..bfcea039fd90 100644
--- a/vcl/qt5/Qt5Graphics_GDI.cxx
+++ b/vcl/qt5/Qt5Graphics_GDI.cxx
@@ -583,7 +583,7 @@ static bool getAlphaImage(const SalBitmap& rSourceBitmap, const SalBitmap& rAlph
             uchar* image_line = rAlphaImage.scanLine(y);
             const uchar* alpha_line = pAlpha->scanLine(y);
             for (int x = 0; x < rAlphaImage.width(); ++x, image_line += 4)
-                image_line[3] = alpha_line[x];
+                image_line[3] = 255 - alpha_line[x];
         }
     }
     else


More information about the Libreoffice-commits mailing list