[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.
This commit is contained in:
Quantum 2021-08-16 01:52:38 -04:00 committed by Geoffrey McRae
parent cdda89cef7
commit fd4a4114e6

View file

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