mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use WasCursorChanged()
when rendering lineinput in CUI::DoEditBox
This commit is contained in:
parent
5013962480
commit
0aca09093f
|
@ -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);
|
pRect->Draw(ms_LightButtonColorFunction.GetColor(Active, HotItem() == pLineInput), Corners, 3.0f);
|
||||||
ClipEnable(pRect);
|
ClipEnable(pRect);
|
||||||
Textbox.x -= ScrollOffset;
|
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();
|
ClipDisable();
|
||||||
|
|
||||||
// Scroll left or right if necessary
|
// Scroll left or right if necessary
|
||||||
|
|
Loading…
Reference in a new issue