Skip to content
Permalink
Browse files

quartz: Fix cursor transparency.

This patch originally came from:

kanjitalk755/SDL@0296d5e

Fixes Bugzilla #4076.
  • Loading branch information
icculus committed Aug 3, 2019
1 parent 11cb97b commit 903669d9581254e09c7e95bbc9308eb3edf9984d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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];
}

0 comments on commit 903669d

Please sign in to comment.