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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user