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:
parent
6160158729
commit
7bb69ba88b
4 changed files with 33 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue