Skip to content

Commit 31b967f

Browse files
committed
Fix 01d27a4 (sorry I cherry-picked from wrong branch)
1 parent 01d27a4 commit 31b967f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui_draw.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4016,7 +4016,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons
40164016
continue;
40174017
}
40184018

4019-
const float char_width = ImFontGetCharAdvanceX(this, c);
4019+
const float char_width = ImFontGetCharAdvanceX(this, c) * scale;
40204020
if (line_width + char_width >= max_width)
40214021
{
40224022
s = prev_s;

0 commit comments

Comments
 (0)