From 903669d9581254e09c7e95bbc9308eb3edf9984d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 3 Aug 2019 16:27:46 -0400 Subject: [PATCH] quartz: Fix cursor transparency. This patch originally came from: https://github.com/kanjitalk755/SDL/commit/0296d5e601a5deb5ce2f540a8eafd64dd22dbe69 Fixes Bugzilla #4076. --- src/video/quartz/SDL_QuartzWM.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/quartz/SDL_QuartzWM.m b/src/video/quartz/SDL_QuartzWM.m index d526424d4..6a0c98695 100644 --- a/src/video/quartz/SDL_QuartzWM.m +++ b/src/video/quartz/SDL_QuartzWM.m @@ -55,7 +55,7 @@ void QZ_FreeWMCursor (_THIS, WMcursor *cursor) { /* 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]; }