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

@ -1410,8 +1410,10 @@ kicklabel0(char *label) {
}
void
setcursor(Cursor *c)
setcursor(Cursor *c, Cursor2 *c2)
{
USED(c2);
/*
* No cursor change unless in main thread.
*/
@ -1658,3 +1660,9 @@ setprocname(const char *s)
if(err != noErr)
fprint(2, "Call to set process name failed\n");
}
void
resizewindow(Rectangle r)
{
USED(r);
}