[all] make cursor visible a flag and send it seperate to position

This commit is contained in:
Geoffrey McRae
2020-01-27 02:07:32 +11:00
parent 9d7f773b9c
commit bced5f95ff
5 changed files with 21 additions and 15 deletions

View File

@@ -37,7 +37,8 @@ FrameType;
enum
{
CURSOR_FLAG_POSITION = 0x1,
CURSOR_FLAG_SHAPE = 0x2
CURSOR_FLAG_VISIBLE = 0x2,
CURSOR_FLAG_SHAPE = 0x4
};
typedef uint32_t KVMFRCursorFlags;
@@ -52,7 +53,6 @@ CursorType;
typedef struct KVMFRCursor
{
int16_t x, y; // cursor x & y position
bool visible; // cursor visible
CursorType type; // shape buffer data type
uint32_t width; // width of the shape
uint32_t height; // height of the shape