From d99c272a7933b721bc6231c409ff7d3ba5ec63cf Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 27 Jun 2026 23:14:32 +0200 Subject: [PATCH] have textboxes "reserve" space for cursor so it wont draw outside the textbox but rather scrolls --- src/m_textinput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_textinput.h b/src/m_textinput.h index ce296ffde..f5846059e 100644 --- a/src/m_textinput.h +++ b/src/m_textinput.h @@ -44,7 +44,7 @@ boolean M_TextInputHandle(textinput_t *input, INT32 key); // If currently typing something that looks like an existing emote, return suggestions for it boolean M_TextInputHandleEmotes(textinput_t *input, INT32 key, emote_autocomplete_t *autocomplete); -#define M_DrawTextInput(x, y, input, flags) M_DrawTextInputScroll((x), (y), (input), (flags), ((input)->buffer_size-1)*8) +#define M_DrawTextInput(x, y, input, flags) M_DrawTextInputScroll((x), (y), (input), (flags), ((input)->buffer_size-2)*8) void M_DrawTextInputScroll(INT32 x, INT32 y, textinput_t *input, INT32 flags, INT32 MAXINPUTWIDTH); #endif