vcl/win/gdi/salbmp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b478b176a2a1fe10102ea084423123f984c805cc
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Feb 14 18:29:02 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri Feb 14 20:29:37 2025 +0100

    fix regression in GDI rendering
    
    after
        commit 42cc3b58451dec8a99af9c26e8bc947cce0ae058
        Author: Noel Grandin <[email protected]>
        Date:   Fri Jan 24 11:52:18 2025 +0200
        N32BitTcMask is unnecessary
    
    which went unnoticed because our unit tests currently run the skia
    backend, but if we had run
     SAL_DISABLESKIA=1 make CppunitTest_vcl_backend_test
    on Windows, we would see a failure.
    
    Change-Id: I6e291db3b1c33d9378e1db9780f9c9429ee5fa2c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181675
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/win/gdi/salbmp.cxx b/vcl/win/gdi/salbmp.cxx
index 661684ac0084..3d2a020896a2 100644
--- a/vcl/win/gdi/salbmp.cxx
+++ b/vcl/win/gdi/salbmp.cxx
@@ -744,7 +744,7 @@ BitmapBuffer* WinSalBitmap::AcquireBuffer( BitmapAccessMode 
/*nMode*/ )
 
         pBuffer->meFormat = pBIH->biBitCount == 8 ? ScanlineFormat::N8BitPal :
                             pBIH->biBitCount == 24 ? 
ScanlineFormat::N24BitTcBgr :
-                            pBIH->biBitCount == 32 ? 
ScanlineFormat::N32BitTcXrgb :
+                            pBIH->biBitCount == 32 ? 
ScanlineFormat::N32BitTcBgrx :
                             ScanlineFormat::NONE;
         assert (pBuffer->meFormat != ScanlineFormat::NONE);
 

Reply via email to