Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240221: XOR mode rendering option does not work with Texture paint a…
…nd Gradient Paint
  • Loading branch information
aghaisas committed Jul 24, 2020
1 parent 3682655 commit 2122e5be4f00a1a1fd6f5343fe5e8eb385b2f2cb
Showing 1 changed file with 2 additions and 2 deletions.
@@ -716,9 +716,9 @@ jboolean clipDestCoords(
pDst = PtrAddBytes(pDst, dstx * dstInfo.pixelStride);
pDst = PtrPixelsRow(pDst, dsty, dstInfo.scanStride);

// this accounts for lower-left origin of the source region
// Metal texture is (0,0) at left-top
srcx = srcOps->xOffset + srcx;
srcy = srcOps->yOffset + srcOps->height - srcy - height;
srcy = srcOps->yOffset + srcy;
const int srcLength = width * height * 4; // NOTE: assume that src format is MTLPixelFormatBGRA8Unorm

#ifdef DEBUG

0 comments on commit 2122e5b

Please sign in to comment.