From 164dd00490428635255a80e4a45261337d55ef6a Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 20 Aug 2021 03:11:57 -0400 Subject: [PATCH] [common] rects: fix typo in rectContains --- common/src/rects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/rects.c b/common/src/rects.c index a10f75f7..c6b93699 100644 --- a/common/src/rects.c +++ b/common/src/rects.c @@ -248,7 +248,7 @@ inline static bool rectContains(const FrameDamageRect * r1, const FrameDamageRec return r1->x <= r2->x && r1->y <= r2->y && r1->x + r1->width >= r2->x + r2->width && - r1->y + r1->height >= r2->x + r2->height; + r1->y + r1->height >= r2->y + r2->height; } int rectsRejectContained(FrameDamageRect * rects, int count)