vcl/win/source/gdi/salbmp.cxx |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

New commits:
commit 01d96add97c49607317b51ac64a36c229f9da0ec
Author: Noel Grandin <[email protected]>
Date:   Wed Jul 29 09:48:43 2015 +0200

    fix windows build
    
    after commit b97aa3faa03e5944aac8f3c35a8c198fba295e83
    "Remove the unnecessary type definition: HPBYTE"
    
    Change-Id: Ifd73ecb7e923ef38826d24c3d251be29eda472bf

diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 52c2878..0147005 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -51,12 +51,20 @@
 
 // - Inlines -
 
-inline void ImplSetPixel4( const sal_uInt8* pScanline, long nX, const BYTE 
cIndex )
+inline void ImplSetPixel4( sal_uInt8* pScanline, long nX, const BYTE cIndex )
 {
     BYTE& rByte = pScanline[ nX >> 1 ];
 
-    ( nX & 1 ) ? ( rByte &= 0xf0, rByte |= ( cIndex & 0x0f ) ) :
-                 ( rByte &= 0x0f, rByte |= ( cIndex << 4 ) );
+    if ( nX & 1 )
+    {
+        rByte &= 0xf0;
+        rByte |= cIndex & 0x0f;
+    }
+    else
+    {
+        rByte &= 0x0f;
+        rByte |= cIndex << 4;
+    }
 }
 
 // Helper class to manage Gdiplus::Bitmap instances inside of
@@ -954,11 +962,11 @@ void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* 
pSrcBuf, BYTE* pDstBuf,
     sal_uInt8*      pRLE = (sal_uInt8*) pSrcBuf;
     sal_uInt8*      pDIB = (sal_uInt8*) pDstBuf;
     sal_uInt8*      pRow = (sal_uInt8*) pDstBuf;
-    sal_uLong           nWidthAl = AlignedWidth4Bytes( rSizePixel.Width() * ( 
bRLE4 ? 4UL : 8UL ) );
+    sal_uLong       nWidthAl = AlignedWidth4Bytes( rSizePixel.Width() * ( 
bRLE4 ? 4UL : 8UL ) );
     sal_uInt8*      pLast = pDIB + rSizePixel.Height() * nWidthAl - 1;
-    sal_uLong           nCountByte;
-    sal_uLong           nRunByte;
-    sal_uLong           i;
+    sal_uLong       nCountByte;
+    sal_uLong       nRunByte;
+    sal_uLong       i;
     BYTE            cTmp;
     bool            bEndDecoding = FALSE;
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to