mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +00:00
[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:
parent
cdda89cef7
commit
fd4a4114e6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue