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

Caolán McNamara caolanm at redhat.com
Wed Jun 1 12:26:00 UTC 2016


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

New commits:
commit de8c740ca1aaebd51e3f18b05110f756ddce5cf8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 1 11:37:39 2016 +0100

    1 bit masks need each byte to be reversed
    
    to match CAIRO_FORMAT_A1 ordering
    
    as seen under gtk3 with animated gif of tdf#99519
    
    Change-Id: I62d7197522ad779683e46837ddeabbfe21f3717b

diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index 756caee..cb8c771 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -75,7 +75,7 @@ BitmapBuffer* ImplCreateDIB(
             switch (nBitCount)
             {
                 case 1:
-                    pDIB->mnFormat = ScanlineFormat::N1BitMsbPal;
+                    pDIB->mnFormat = ScanlineFormat::N1BitLsbPal;
                     break;
                 case 4:
                     pDIB->mnFormat = ScanlineFormat::N4BitMsnPal;


More information about the Libreoffice-commits mailing list