mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Remove useless operation in CUIRect SplitMid
This commit is contained in:
parent
acfe26e715
commit
e2c02eaf7b
|
@ -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