mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use IGraphics::CORNER_NONE
for CUIRect::Draw
function
This commit is contained in:
parent
f13888b2cc
commit
7854a277c7
|
@ -625,7 +625,7 @@ void CMenus::RenderServerControl(CUIRect MainView)
|
|||
// render background
|
||||
CUIRect Bottom, RconExtension, TabBar, Button;
|
||||
MainView.HSplitTop(20.0f, &Bottom, &MainView);
|
||||
Bottom.Draw(ms_ColorTabbarActive, 0, 10.0f);
|
||||
Bottom.Draw(ms_ColorTabbarActive, IGraphics::CORNER_NONE, 0.0f);
|
||||
MainView.HSplitTop(20.0f, &TabBar, &MainView);
|
||||
MainView.Draw(ms_ColorTabbarActive, IGraphics::CORNER_B, 10.0f);
|
||||
MainView.Margin(10.0f, &MainView);
|
||||
|
|
|
@ -154,11 +154,11 @@ SEditResult<E> CEditor::DoPropertiesWithState(CUIRect *pToolBox, CProperty *pPro
|
|||
Shifter.VSplitMid(&Left, &Up, 2.0f);
|
||||
Left.VSplitLeft(10.0f, &Left, &Shifter);
|
||||
Shifter.VSplitRight(10.0f, &Shifter, &Right);
|
||||
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), 0, 0.0f);
|
||||
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), IGraphics::CORNER_NONE, 0.0f);
|
||||
UI()->DoLabel(&Shifter, "X", 10.0f, TEXTALIGN_MC);
|
||||
Up.VSplitLeft(10.0f, &Up, &Shifter);
|
||||
Shifter.VSplitRight(10.0f, &Shifter, &Down);
|
||||
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), 0, 0.0f);
|
||||
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), IGraphics::CORNER_NONE, 0.0f);
|
||||
UI()->DoLabel(&Shifter, "Y", 10.0f, TEXTALIGN_MC);
|
||||
if(DoButton_ButtonDec(&pIDs[i], "-", 0, &Left, 0, "Left"))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue