Skip to content

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Jan 13, 2026

  • Factor render_offset into GuiTextEntry::getTextOffsetForPosition()
  • Use the element's theme font instead of RenderTarget::getDefaultFont() in getTextOffsetForPosition()

Fixes #2693.

Before:

11-3.mp4
11-4.mp4

After:

11-1.mp4
11-2.mp4

@daid daid merged commit 1bc3972 into daid:master Jan 14, 2026
5 checks passed
@oznogon oznogon deleted the 2693-fix-guitextentry-cursor branch January 14, 2026 16:39
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] GuiTextEntry text cursor coordinate scale doesn't align with mouse cursor coordinate

2 participants