[client] spice: delay showing the spice display until spice is ready

This commit is contained in:
Geoffrey McRae
2022-05-24 09:48:54 +10:00
parent c0da28247d
commit d1e421f8a8
6 changed files with 75 additions and 39 deletions

View File

@@ -26,7 +26,8 @@ typedef struct
{
SPICE_OP_CONFIGURE,
SPICE_OP_DRAW_FILL,
SPICE_OP_DRAW_BITMAP
SPICE_OP_DRAW_BITMAP,
SPICE_OP_SHOW
}
op;
@@ -36,7 +37,7 @@ typedef struct
{
int width, height;
}
configure;
spiceConfigure;
struct
{
@@ -44,7 +45,7 @@ typedef struct
int width, height;
uint32_t color;
}
fillRect;
spiceFillRect;
struct
{
@@ -54,7 +55,13 @@ typedef struct
uint8_t * data;
bool topDown;
}
drawBitmap;
spiceDrawBitmap;
struct
{
bool show;
}
spiceShow;
};
}
RenderCommand;
@@ -71,3 +78,5 @@ void renderQueue_spiceDrawFill(int x, int y, int width, int height,
void renderQueue_spiceDrawBitmap(int x, int y, int width, int height, int stride,
void * data, bool topDown);
void renderQueue_spiceShow(bool show);