diff options
| author | Russ Cox <rsc@swtch.com> | 2018-11-15 20:28:56 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2018-11-15 20:39:35 -0500 |
| commit | 7d43dde539378fb5730df6ce961f7916f495746e (patch) | |
| tree | df3db29164e5ed9d556db391b2ed56145883d682 /src/cmd/devdraw/cocoa-screen.m | |
| parent | be0a15c47b75dc73a5c389cca125692f0cfdf726 (diff) | |
| download | plan9port-7d43dde539378fb5730df6ce961f7916f495746e.tar.gz plan9port-7d43dde539378fb5730df6ce961f7916f495746e.zip | |
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.
Diffstat (limited to 'src/cmd/devdraw/cocoa-screen.m')
| -rw-r--r-- | src/cmd/devdraw/cocoa-screen.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m index 16053eaa..c2489a6c 100644 --- a/src/cmd/devdraw/cocoa-screen.m +++ b/src/cmd/devdraw/cocoa-screen.m @@ -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); +} |
