[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);
renderQueue_spiceShow(true);
overlaySplash_show(false);
}
else
{

View file

@ -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);