From 7854a277c7d246857d32333fbf39c5ace09e1b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Wed, 24 Jan 2024 23:05:19 +0100 Subject: [PATCH] Use `IGraphics::CORNER_NONE` for `CUIRect::Draw` function --- src/game/client/components/menus_ingame.cpp | 2 +- src/game/editor/editor_props.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index 391f5475c..14c6f8b93 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -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); diff --git a/src/game/editor/editor_props.cpp b/src/game/editor/editor_props.cpp index 9f42409c3..0a2d724d2 100644 --- a/src/game/editor/editor_props.cpp +++ b/src/game/editor/editor_props.cpp @@ -154,11 +154,11 @@ SEditResult 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")) {