From a4f5bc732048bf95a849a79b498bdce9f21f12bf Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 27 May 2022 14:02:00 +1000 Subject: [PATCH] [client] render_queue: fix failure to show spice at startup --- client/src/app.c | 1 - client/src/render_queue.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/app.c b/client/src/app.c index 9f4b9e8c..221bea49 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -1063,7 +1063,6 @@ bool app_useSpiceDisplay(bool enable) { purespice_connectChannel(PS_CHANNEL_DISPLAY); renderQueue_spiceShow(true); - overlaySplash_show(false); } else { diff --git a/client/src/render_queue.c b/client/src/render_queue.c index 03a4db10..6f421882 100644 --- a/client/src/render_queue.c +++ b/client/src/render_queue.c @@ -24,6 +24,7 @@ #include "common/ll.h" #include "main.h" +#include "overlays.h" struct ll * l_renderQueue = NULL; @@ -54,9 +55,6 @@ void renderQueue_clear(void) void renderQueue_spiceConfigure(int width, int height) { - // reconfigurations invalidate the entire queue - renderQueue_clear(); - RenderCommand * cmd = malloc(sizeof(*cmd)); cmd->op = SPICE_OP_CONFIGURE; cmd->spiceConfigure.width = width; @@ -135,6 +133,8 @@ void renderQueue_process(void) case SPICE_OP_SHOW: RENDERER(spiceShow, cmd->spiceShow.show); + if (cmd->spiceShow.show) + overlaySplash_show(false); break; } free(cmd);