diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-01-24 11:55:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-01-24 14:18:26 +0100 |
commit | 9e77eefb0ef2d6a23a2d9833ad9783a194c37d1b (patch) | |
tree | bf862eaa02ed485194283f0d46f4ac60c49b6bd4 | |
parent | 42cc3b58451dec8a99af9c26e8bc947cce0ae058 (diff) |
no need to use color mask in QuartzSalBitmap::AcquireBuffer
ever since
commit b29e161488f0291f381f04e2533106321f357c1e
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Fri Jan 10 21:19:54 2025 +0200
make the ScanlineFormat values more explicit
Change-Id: I5a348659e1d341e3f33e0a2636697e37aaabfe47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180699
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | vcl/quartz/salbmp.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index ca286b3fc434..82ef64db8ebe 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -46,10 +46,6 @@ #include <ios/iosinst.hxx> #endif -const unsigned long k32BitRedColorMask = 0x00ff0000; -const unsigned long k32BitGreenColorMask = 0x0000ff00; -const unsigned long k32BitBlueColorMask = 0x000000ff; - QuartzSalBitmap::QuartzSalBitmap() : mxCachedImage( nullptr ) , mnBits(0) @@ -446,13 +442,6 @@ BitmapBuffer* QuartzSalBitmap::AcquireBuffer( BitmapAccessMode /*nMode*/ ) case 32: { pBuffer->meFormat = ImplGetSVData()->mpDefInst->supportsBitmap32() ? ScanlineFormat::N32BitTcArgb : ScanlineFormat::N32BitTcXrgb; - ColorMaskElement aRedMask(k32BitRedColorMask); - aRedMask.CalcMaskShift(); - ColorMaskElement aGreenMask(k32BitGreenColorMask); - aGreenMask.CalcMaskShift(); - ColorMaskElement aBlueMask(k32BitBlueColorMask); - aBlueMask.CalcMaskShift(); - pBuffer->maColorMask = ColorMask(aRedMask, aGreenMask, aBlueMask); break; } default: assert(false); |