From 79c503ec0fb0c32aeddecc3cc2f22cfa6c1eb7bd Mon Sep 17 00:00:00 2001 From: furo Date: Tue, 12 Sep 2023 17:50:06 +0200 Subject: [PATCH] Fix requested changes --- src/game/client/components/menus.cpp | 8 ++++---- src/game/client/components/menus_demo.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 90de9ab6b..8861d7cab 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -1717,13 +1717,13 @@ int CMenus::Render() Box.HSplitBottom(160.f, &Box, &Part); - Part.VSplitLeft(60.0f, 0, &TextBox); - TextBox.VSplitLeft(20.0f, 0, &TextBox); - TextBox.VSplitRight(60.0f, &TextBox, 0); + Part.VSplitLeft(60.0f, nullptr, &TextBox); + TextBox.VSplitLeft(20.0f, nullptr, &TextBox); + TextBox.VSplitRight(60.0f, &TextBox, nullptr); str_format(aBuf, sizeof(aBuf), Localize("Video was saved to '%s'"), aFilePath); - UI()->DoLabel(&TextBox, aBuf, 18.0f, TEXTALIGN_LEFT); + UI()->DoLabel(&TextBox, aBuf, 18.0f, TEXTALIGN_TL); } #endif else if(m_Popup == POPUP_FIRST_LAUNCH) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 102530882..56926c4af 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -987,7 +987,7 @@ void CMenus::RenderDemoList(CUIRect MainView) } #if defined(CONF_VIDEORECORDER) - if(m_DemoRenderInput.GetLength() > 0) + if(!m_DemoRenderInput.IsEmpty()) { m_Popup = POPUP_RENDER_DONE; }