From b26accf037960b2bcd18e9b6dfc061243cc47794 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 3 Nov 2022 15:54:41 +0800 Subject: [PATCH] cleanup --- src/include/newgal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/newgal.h b/src/include/newgal.h index 847e0bbb..d5622a35 100644 --- a/src/include/newgal.h +++ b/src/include/newgal.h @@ -735,10 +735,10 @@ GAL_bool GAL_IntersectRect (const GAL_Rect *A, const GAL_Rect *B, Bmin = B->x; Bmax = Bmin + B->w; if (Bmin > Amin) - Amin = Bmin; + Amin = Bmin; intersection->x = Amin; if (Bmax < Amax) - Amax = Bmax; + Amax = Bmax; intersection->w = Amax - Amin > 0 ? Amax - Amin : 0; /* Vertical intersection */ @@ -747,10 +747,10 @@ GAL_bool GAL_IntersectRect (const GAL_Rect *A, const GAL_Rect *B, Bmin = B->y; Bmax = Bmin + B->h; if (Bmin > Amin) - Amin = Bmin; + Amin = Bmin; intersection->y = Amin; if (Bmax < Amax) - Amax = Bmax; + Amax = Bmax; intersection->h = Amax - Amin > 0 ? Amax - Amin : 0; return (intersection->w && intersection->h);