[MacPorts] #55804: libsdl: cursor lacks transparency in High Sierra (macOS 10.13)
MacPorts
noreply at macports.org
Sun Jun 3 19:18:52 UTC 2018
#55804: libsdl: cursor lacks transparency in High Sierra (macOS 10.13)
---------------------------+------------------------
Reporter: markuskimius | Owner: jmroot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: highsierra
Port: libsdl |
---------------------------+------------------------
Comment (by kencu):
I found only this part of the referenced patch was needed (other parts are
already in MacPorts):
{{{
$ cat patch-sdl-1.2-10.13-cursor-fix.diff
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];
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/55804#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list