Skip to content

Commit

Permalink
Mac OS X cursor fix [#1392 (comment)]
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jan 31, 2020
1 parent 628e29d commit 95b1c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vs2015/sdl/src/video/quartz/SDL_QuartzWM.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ 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[1][i] = mask[i] | data[i];
planes[0][i] = ~data[i] & mask[i];
planes[1][i] = mask[i] | data[i];
}

/* create image and cursor */
Expand Down

0 comments on commit 95b1c25

Please sign in to comment.