diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-05-08 22:43:00 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-05-08 23:17:17 +0200 |
commit | 558c8bd9d5c5910e3290049e08fc7c3280151fd4 (patch) | |
tree | f70761cd8cd827681ab67ee43df7028ee075fd94 /vcl/quartz | |
parent | a9412aaf6b3b64c22b15ec6a83b995f2be78a319 (diff) |
Add some comments to macOS backend impl. of SalBitmap
Change-Id: Idfefe7598df0b2e382be84aa5bfc8b60201768a7
Reviewed-on: https://gerrit.libreoffice.org/71991
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 3d7af959b90d..c47151f137b7 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -908,6 +908,7 @@ CGImageRef QuartzSalBitmap::CreateColorMask( int nX, int nY, int nWidth, reinterpret_cast<sal_uInt8*>(&nColor)[3] = nMaskColor.GetBlue(); sal_uInt8* pSource = m_pUserBuffer.get(); + // First to nY on y-axis, as that is our starting point (sub-image) if( nY ) pSource += nY * mnBytesPerRow; @@ -915,7 +916,7 @@ CGImageRef QuartzSalBitmap::CreateColorMask( int nX, int nY, int nWidth, while( y-- ) { pSourcePixels->StartLine( pSource ); - pSourcePixels->SkipPixel(nX); + pSourcePixels->SkipPixel(nX); // Skip on x axis to nX sal_uInt32 x = nWidth; while( x-- ) { |