From 0aca09093f93d680ca207b0a3505ad25c530279c Mon Sep 17 00:00:00 2001 From: archimede67 Date: Mon, 11 Dec 2023 22:26:19 +0100 Subject: [PATCH] Use `WasCursorChanged()` when rendering lineinput in `CUI::DoEditBox` --- src/game/client/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 1a322686e..b1e020702 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -842,7 +842,7 @@ bool CUI::DoEditBox(CLineInput *pLineInput, const CUIRect *pRect, float FontSize pRect->Draw(ms_LightButtonColorFunction.GetColor(Active, HotItem() == pLineInput), Corners, 3.0f); ClipEnable(pRect); Textbox.x -= ScrollOffset; - const STextBoundingBox BoundingBox = pLineInput->Render(&Textbox, FontSize, TEXTALIGN_ML, Changed, -1.0f, 0.0f); + const STextBoundingBox BoundingBox = pLineInput->Render(&Textbox, FontSize, TEXTALIGN_ML, pLineInput->WasCursorChanged(), -1.0f, 0.0f); ClipDisable(); // Scroll left or right if necessary