[client] render_queue: support cursor operations

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-09-19 11:13:53 +10:00
1 parent f14d135266
commit 1fd00ba26c
2 files changed
+65 -1

No files matched your search

+28 -1
View File
@@ -27,7 +27,9 @@ typedef struct
SPICE_OP_CONFIGURE,
SPICE_OP_DRAW_FILL,
SPICE_OP_DRAW_BITMAP,
SPICE_OP_SHOW
SPICE_OP_SHOW,
CURSOR_OP_STATE,
CURSOR_OP_IMAGE,
}
op;
@@ -62,6 +64,26 @@ typedef struct
bool show;
}
spiceShow;
struct
{
bool visible;
int x;
int y;
int hx;
int hy;
}
cursorState;
struct
{
bool monochrome;
int width;
int height;
int pitch;
uint8_t * data;
}
cursorImage;
};
}
RenderCommand;
@@ -80,3 +102,8 @@ void renderQueue_spiceDrawBitmap(int x, int y, int width, int height, int stride
void * data, bool topDown);
void renderQueue_spiceShow(bool show);
void renderQueue_cursorState(bool visible, int x, int y, int hx, int hy);
void renderQueue_cursorImage(bool monochrome, int width, int height, int pitch,
uint8_t * data);