From 7bb69ba88b8083b3eb9b3afefd8cdeae6aea2149 Mon Sep 17 00:00:00 2001 From: Fazlul Shahriar Date: Fri, 5 Apr 2019 15:09:35 -0400 Subject: libdraw,devdraw: fix compatibility with old 16x16 cursor protocol (#217) Some libraries that depend on devdraw don't know about 32x32 cursor -- mainly 9fans.net/go/draw. --- src/cmd/devdraw/cocoa-srv.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cmd/devdraw/cocoa-srv.c') diff --git a/src/cmd/devdraw/cocoa-srv.c b/src/cmd/devdraw/cocoa-srv.c index 329dd71f..c1cf5983 100644 --- a/src/cmd/devdraw/cocoa-srv.c +++ b/src/cmd/devdraw/cocoa-srv.c @@ -162,6 +162,14 @@ runmsg(Wsysmsg *m) break; case Tcursor: + if(m->arrowcursor) + setcursor(nil, nil); + else + setcursor(&m->cursor, nil); + replymsg(m); + break; + + case Tcursor2: if(m->arrowcursor) setcursor(nil, nil); else -- cgit v1.2.3