commit | 31b967f098dc53a6bb36f9be36f4a9e5d592f775 | [log] [tgz] |
---|---|---|
author | ocornut <omar@miracleworld.net> | Thu Nov 07 19:35:00 2024 +0100 |
committer | ocornut <omar@miracleworld.net> | Thu Nov 07 19:35:00 2024 +0100 |
tree | 73379a9fbec7f0c1cc45ee4ada0a1a27cebd43cc | |
parent | 01d27a4acde14c13e86adfcd0569e752f181e205 [diff] |
Fix 01d27a4 (sorry I cherry-picked from wrong branch)
diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 7934949..48d42f3 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp
@@ -4016,7 +4016,7 @@ continue; } - const float char_width = ImFontGetCharAdvanceX(this, c); + const float char_width = ImFontGetCharAdvanceX(this, c) * scale; if (line_width + char_width >= max_width) { s = prev_s;