mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
Fonts: fixed ellipsis "..." rendering width miscalculation bug introduced in 1.91.0. (#7976)
Amend 0f63d3e9
This commit is contained in:
parent
8807b01b28
commit
dc6346b763
2 changed files with 2 additions and 1 deletions
|
|
@ -4007,7 +4007,7 @@ static void SetCurrentWindow(ImGuiWindow* window)
|
|||
if (window)
|
||||
{
|
||||
g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize();
|
||||
g.FontScale = g.FontSize / g.Font->FontSize;
|
||||
g.FontScale = g.DrawListSharedData.FontScale = g.FontSize / g.Font->FontSize;
|
||||
ImGui::NavUpdateCurrentWindowIsScrollPushableX();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue