mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8139 from ChillerDragon/pr_cui_noop
Remove useless operation in CUIRect SplitMid
This commit is contained in:
commit
2dbcb9795a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue