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.
This commit is contained in:
Fazlul Shahriar 2019-04-05 15:09:35 -04:00 committed by Russ Cox
parent 6160158729
commit 7bb69ba88b
4 changed files with 33 additions and 1 deletions

View file

@ -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