mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +00:00
[common] rects: fix rectIntersects
This commit is contained in:
parent
9969896876
commit
edf1e341da
@ -206,7 +206,7 @@ inline static bool rectIntersects(const FrameDamageRect * r1, const FrameDamageR
|
|||||||
return r1->x < r2->x + r2->width &&
|
return r1->x < r2->x + r2->width &&
|
||||||
r1->x + r1->width > r2->x &&
|
r1->x + r1->width > r2->x &&
|
||||||
r1->y < r2->y + r2->height &&
|
r1->y < r2->y + r2->height &&
|
||||||
r2->y + r1->height > r2->y;
|
r1->y + r1->height > r2->y;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rectsMergeOverlapping(FrameDamageRect * rects, int count)
|
int rectsMergeOverlapping(FrameDamageRect * rects, int count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user