diff options
Diffstat (limited to 'vcl/quartz/salbmp.cxx')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 3817c94e9cb8..34643071eff2 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -604,12 +604,12 @@ void QuartzSalBitmap::ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight, { // TODO: extend bmpfast.cxx with a method that can be directly used here BitmapBuffer aSrcBuf; - aSrcBuf.mnFormat = BMP_FORMAT_24BIT_TC_BGR; + aSrcBuf.mnFormat = ScanlineFormat::N24BitTcBgr; aSrcBuf.mpBits = pSrcData; aSrcBuf.mnBitCount = nSrcBits; aSrcBuf.mnScanlineSize = nSrcBytesPerRow; BitmapBuffer aDstBuf; - aDstBuf.mnFormat = BMP_FORMAT_32BIT_TC_ARGB; + aDstBuf.mnFormat = ScanlineFormat::N32BitTcArgb; aDstBuf.mpBits = pDestData; aDstBuf.mnBitCount = nDestBits; aDstBuf.mnScanlineSize = nDestBytesPerRow; @@ -768,17 +768,17 @@ BitmapBuffer* QuartzSalBitmap::AcquireBuffer( BitmapAccessMode /*nMode*/ ) switch( mnBits ) { case 1: - pBuffer->mnFormat = BMP_FORMAT_1BIT_MSB_PAL; + pBuffer->mnFormat = ScanlineFormat::N1BitMsbPal; break; case 4: - pBuffer->mnFormat = BMP_FORMAT_4BIT_MSN_PAL; + pBuffer->mnFormat = ScanlineFormat::N4BitMsnPal; break; case 8: - pBuffer->mnFormat = BMP_FORMAT_8BIT_PAL; + pBuffer->mnFormat = ScanlineFormat::N8BitPal; break; case 16: { - pBuffer->mnFormat = BMP_FORMAT_16BIT_TC_MSB_MASK; + pBuffer->mnFormat = ScanlineFormat::N16BitTcMsbMask; ColorMaskElement aRedMask(k16BitRedColorMask); aRedMask.CalcMaskShift(); ColorMaskElement aGreenMask(k16BitGreenColorMask); @@ -789,11 +789,11 @@ BitmapBuffer* QuartzSalBitmap::AcquireBuffer( BitmapAccessMode /*nMode*/ ) break; } case 24: - pBuffer->mnFormat = BMP_FORMAT_24BIT_TC_BGR; + pBuffer->mnFormat = ScanlineFormat::N24BitTcBgr; break; case 32: { - pBuffer->mnFormat = BMP_FORMAT_32BIT_TC_ARGB; + pBuffer->mnFormat = ScanlineFormat::N32BitTcArgb; ColorMaskElement aRedMask(k32BitRedColorMask); aRedMask.CalcMaskShift(); ColorMaskElement aGreenMask(k32BitGreenColorMask); @@ -804,7 +804,6 @@ BitmapBuffer* QuartzSalBitmap::AcquireBuffer( BitmapAccessMode /*nMode*/ ) break; } } - pBuffer->mnFormat |= BMP_FORMAT_BOTTOM_UP; // some BitmapBuffer users depend on a complete palette if( (mnBits <= 8) && !maPalette ) |