Merge pull request #8139 from ChillerDragon/pr_cui_noop

Remove useless operation in CUIRect SplitMid
This commit is contained in:
heinrich5991 2024-05-02 06:14:34 +00:00 committed by GitHub
commit 2dbcb9795a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ void CUIRect::HSplitMid(CUIRect *pTop, CUIRect *pBottom, float Spacing) const
pBottom->x = r.x;
pBottom->y = r.y + Cut + HalfSpacing;
pBottom->w = r.w;
pBottom->h = r.h - Cut - HalfSpacing;
pBottom->h = Cut - HalfSpacing;
}
}
@ -89,7 +89,7 @@ void CUIRect::VSplitMid(CUIRect *pLeft, CUIRect *pRight, float Spacing) const
{
pRight->x = r.x + Cut + HalfSpacing;
pRight->y = r.y;
pRight->w = r.w - Cut - HalfSpacing;
pRight->w = Cut - HalfSpacing;
pRight->h = r.h;
}
}