From 95b1c25157dc5c5bdf270cb5dbee7452fd50ccaa Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Fri, 31 Jan 2020 11:03:11 -0800 Subject: [PATCH] Mac OS X cursor fix [https://github.com/joncampbell123/dosbox-x/issues/1392#issuecomment-580134237] --- vs2015/sdl/src/video/quartz/SDL_QuartzWM.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vs2015/sdl/src/video/quartz/SDL_QuartzWM.m b/vs2015/sdl/src/video/quartz/SDL_QuartzWM.m index ae33780e83b..edd4222b5c5 100644 --- a/vs2015/sdl/src/video/quartz/SDL_QuartzWM.m +++ b/vs2015/sdl/src/video/quartz/SDL_QuartzWM.m @@ -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 */