mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
8581c2b567
Also add setcursor2, esetcursor2, and draw protocol encoding. Calls to the old setcursor, esetcursor create a 32x32 by pixel doubling when needed.
28 lines
371 B
C
28 lines
371 B
C
#ifndef _CURSOR_H_
|
|
#define _CURSOR_H_ 1
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Cursor Cursor;
|
|
struct Cursor
|
|
{
|
|
Point offset;
|
|
uchar clr[2*16];
|
|
uchar set[2*16];
|
|
};
|
|
|
|
typedef struct Cursor2 Cursor2;
|
|
struct Cursor2
|
|
{
|
|
Point offset;
|
|
uchar clr[4*32];
|
|
uchar set[4*32];
|
|
};
|
|
|
|
void scalecursor(Cursor2*, Cursor*);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|