Skip to content

Commit

Permalink
Fix 01d27a4 (sorry I cherry-picked from wrong branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Nov 7, 2024
1 parent 01d27a4 commit 31b967f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,7 @@ ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, cons
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;
Expand Down

0 comments on commit 31b967f

Please sign in to comment.