Fix: long TextUnformatted (>2000 bytes) rendered each visible line to the end of the text (RenderText end was nil, upstream passes line_end); PushFont() saved the new font instead of the current one, so PopFont() never restored it (font preview leaked into all later text); t_fixes covers both

This commit is contained in:
4DBug
2026-10-15 10:54:56 -05:00
parent dad1a0c0f1
commit a1aa5cbb2d
5 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ function ImGui.TextEx(text, text_end, flags)
local line_size = ImGui.CalcTextSizeEx(text, line, line_end)
text_size.x = ImMax(text_size.x, line_size.x)
ImGui.RenderText(pos, text, line, nil, false)
ImGui.RenderText(pos, text, line, line_end, false)
line = line_end + 1
line_rect.Min.y = line_rect.Min.y + line_height
line_rect.Max.y = line_rect.Max.y + line_height