libdraw: add Cursor2, a 32x32 high-res cursor
Also add setcursor2, esetcursor2, and draw protocol encoding. Calls to the old setcursor, esetcursor create a 32x32 by pixel doubling when needed.
This commit is contained in:
parent
9af9ceca26
commit
8581c2b567
11 changed files with 86 additions and 7 deletions
|
|
@ -13,6 +13,9 @@ tag[1] Rmoveto
|
|||
tag[1] Tcursor cursor[]
|
||||
tag[1] Rcursor
|
||||
|
||||
tag[1] Tcursor2 cursor[]
|
||||
tag[1] Rcursor2
|
||||
|
||||
tag[1] Tbouncemouse x[4] y[4] button[4]
|
||||
tag[1] Rbouncemouse
|
||||
|
||||
|
|
@ -89,6 +92,8 @@ enum {
|
|||
Rtop,
|
||||
Tresize = 26,
|
||||
Rresize,
|
||||
Tcursor2 = 28,
|
||||
Rcursor2,
|
||||
Tmax,
|
||||
};
|
||||
|
||||
|
|
@ -104,6 +109,7 @@ struct Wsysmsg
|
|||
Mouse mouse;
|
||||
int resized;
|
||||
Cursor cursor;
|
||||
Cursor2 cursor2;
|
||||
int arrowcursor;
|
||||
Rune rune;
|
||||
char *winsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue