[client] render_queue: fix failure to show spice at startup

This commit is contained in:
Geoffrey McRae 2022-05-27 14:02:00 +10:00
parent 48735cd001
commit a4f5bc7320
2 changed files with 3 additions and 4 deletions

View file

@ -1063,7 +1063,6 @@ bool app_useSpiceDisplay(bool enable)
{ {
purespice_connectChannel(PS_CHANNEL_DISPLAY); purespice_connectChannel(PS_CHANNEL_DISPLAY);
renderQueue_spiceShow(true); renderQueue_spiceShow(true);
overlaySplash_show(false);
} }
else else
{ {

View file

@ -24,6 +24,7 @@
#include "common/ll.h" #include "common/ll.h"
#include "main.h" #include "main.h"
#include "overlays.h"
struct ll * l_renderQueue = NULL; struct ll * l_renderQueue = NULL;
@ -54,9 +55,6 @@ void renderQueue_clear(void)
void renderQueue_spiceConfigure(int width, int height) void renderQueue_spiceConfigure(int width, int height)
{ {
// reconfigurations invalidate the entire queue
renderQueue_clear();
RenderCommand * cmd = malloc(sizeof(*cmd)); RenderCommand * cmd = malloc(sizeof(*cmd));
cmd->op = SPICE_OP_CONFIGURE; cmd->op = SPICE_OP_CONFIGURE;
cmd->spiceConfigure.width = width; cmd->spiceConfigure.width = width;
@ -135,6 +133,8 @@ void renderQueue_process(void)
case SPICE_OP_SHOW: case SPICE_OP_SHOW:
RENDERER(spiceShow, cmd->spiceShow.show); RENDERER(spiceShow, cmd->spiceShow.show);
if (cmd->spiceShow.show)
overlaySplash_show(false);
break; break;
} }
free(cmd); free(cmd);