Skip to content

GuiTextInputBox() - Fix always left-align text#510

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
Vincent-Dalstra:master
Jan 28, 2026
Merged

GuiTextInputBox() - Fix always left-align text#510
raysan5 merged 1 commit intoraysan5:masterfrom
Vincent-Dalstra:master

Conversation

@Vincent-Dalstra
Copy link
Contributor

@Vincent-Dalstra Vincent-Dalstra commented Oct 8, 2025

Fixes #509

Temporarily override the text box alignment, forcing it to align-left.

Similar to how prevBtnTextAlignment is used.

Vincent-Dalstra added a commit to Vincent-Dalstra/zig_raygui_controls_test_suite that referenced this pull request Oct 8, 2025
Temporary fixy; it should really happen inside GuiTextInputBox() in
raygui.h. A patch has been submitted upstream:

raysan5/raygui#510

Once that's pulled in, this code will be redundant and can be reverted.
Copy link

@RafaDEV99 RafaDEV99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix in the raygui header file looks very Good
So now the Input text box is fixed! 😄

@raysan5 raysan5 changed the title Fix: always left-align text in GuiTextInputBox() GuiTextInputBox() - Fix always left-align text Jan 28, 2026
@raysan5 raysan5 merged commit 1c2365a into raysan5:master Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug(examples/controls_test_suite): text in dialog does not match cursor position

3 participants