Skip to content

Commit

Permalink
quartz: Fix cursor transparency.
Browse files Browse the repository at this point in the history
This patch originally came from:

kanjitalk755/SDL@0296d5e

Fixes Bugzilla #4076.
  • Loading branch information
icculus committed Aug 3, 2019
1 parent 11cb97b commit 903669d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -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];
}

Expand Down

0 comments on commit 903669d

Please sign in to comment.