# HG changeset patch # User Ryan C. Gordon # Date 1564864066 14400 # Node ID 0cfa2cc751eb447d6308190d2f41759c4086eb76 # Parent f4dccc2744a2086f60823e116073dd1d54830791 quartz: Fix cursor transparency. This patch originally came from: https://github.com/kanjitalk755/SDL/commit/0296d5e601a5deb5ce2f540a8eafd64dd22dbe69 Fixes Bugzilla #4076. diff -r f4dccc2744a2 -r 0cfa2cc751eb src/video/quartz/SDL_QuartzWM.m --- a/src/video/quartz/SDL_QuartzWM.m Sat Aug 03 12:47:10 2019 +0300 +++ b/src/video/quartz/SDL_QuartzWM.m Sat Aug 03 16:27:46 2019 -0400 @@ -55,7 +55,7 @@ /* copy data and mask, extending the mask to all black pixels because the inversion effect doesn't work with Cocoa's alpha-blended cursors */ for (i = 0; i < (w+7)/8*h; i++) { - planes[0][i] = data[i] ^ 0xFF; + planes[0][i] = ~data[i] & mask[i]; planes[1][i] = mask[i] | data[i]; }