vcl/quartz/salbmp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 558c8bd9d5c5910e3290049e08fc7c3280151fd4 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Wed May 8 22:43:00 2019 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Wed May 8 23:17:17 2019 +0200 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 <qui...@gmail.com> 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-- ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits