From fd4a4114e67e945cc549a342036fc437d4f36068 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 16 Aug 2021 01:52:38 -0400 Subject: [PATCH] [client] egl: pad areas of the desktop repainted to cover overlays We pad the screen coordinates and then convert to desktop coordinates, so that the padding will always be a pixel wide on screen. --- client/renderers/EGL/desktop_rects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/desktop_rects.c b/client/renderers/EGL/desktop_rects.c index 49ce9eaf..5c0edf51 100644 --- a/client/renderers/EGL/desktop_rects.c +++ b/client/renderers/EGL/desktop_rects.c @@ -240,8 +240,8 @@ bool egl_screenToDesktop(struct FrameDamageRect * output, const double matrix[6] const struct Rect * rect, int width, int height) { double x1, y1, x2, y2; - matrixMultiply(matrix, &x1, &y1, rect->x, rect->y); - matrixMultiply(matrix, &x2, &y2, rect->x + rect->w, rect->y + rect->h); + matrixMultiply(matrix, &x1, &y1, rect->x - 1, rect->y - 1); + matrixMultiply(matrix, &x2, &y2, rect->x + rect->w + 1, rect->y + rect->h + 1); int x3 = min(x1, x2); int y3 = min(y1, y2);