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
|
|
@ -38,7 +38,9 @@ extern void moveto(Mousectl*, Point);
|
|||
extern int readmouse(Mousectl*);
|
||||
extern void closemouse(Mousectl*);
|
||||
struct Cursor;
|
||||
struct Cursor2;
|
||||
extern void setcursor(Mousectl*, struct Cursor*);
|
||||
extern void setcursor2(Mousectl*, struct Cursor*, struct Cursor2*);
|
||||
extern void drawgetrect(Rectangle, int);
|
||||
extern Rectangle getrect(int, Mousectl*);
|
||||
extern int menuhit(int, Mousectl*, Menu*, Screen*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue