From 82c9df54c5ecd33c5000470749fa6f106ed9cd06 Mon Sep 17 00:00:00 2001 From: Jacob McNamee Date: Thu, 9 May 2024 21:08:50 -0700 Subject: [PATCH] [client] egl: fix unintended vertical clipping in `spiceDrawFill` --- client/renderers/EGL/desktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index 31ba40cf..6fe6ac06 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -609,9 +609,9 @@ void egl_desktopSpiceDrawFill(EGL_Desktop * desktop, int x, int y, int width, for(int x = 0; x < width; ++x) line[x] = color; - for(; y < height; ++y) + for(int dy = 0; dy < height; ++dy) egl_textureUpdateRect(desktop->spiceTexture, - x, y, width, 1, width, sizeof(line), (uint8_t *)line, false); + x, y + dy, width, 1, width, sizeof(line), (uint8_t *)line, false); atomic_store(&desktop->processFrame, true); }