devdraw: add Cursor2 support on macOS 10.14 Mojave

This replaces the pixel-art scaling algorithm used for upscaling before.
The results were not crisp enough to serve as everyday cursors.
This commit is contained in:
Russ Cox
2018-11-15 20:28:56 -05:00
parent be0a15c47b
commit 7d43dde539
8 changed files with 113 additions and 45 deletions

View File

@@ -163,9 +163,9 @@ runmsg(Wsysmsg *m)
case Tcursor:
if(m->arrowcursor)
setcursor(nil);
setcursor(nil, nil);
else
setcursor(&m->cursor);
setcursor(&m->cursor, &m->cursor2);
replymsg(m);
break;
@@ -221,9 +221,7 @@ runmsg(Wsysmsg *m)
break;
case Tresize:
#if OSX_VERSION >= 101400
resizewindow(m->rect);
#endif
replymsg(m);
break;
}