mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Internals: added FontScale storage (amend 0f63d3e).
This commit is contained in:
parent
5496050f5f
commit
05a4f28059
2 changed files with 2 additions and 2 deletions
|
|
@ -7510,7 +7510,7 @@ void ImGui::SetCurrentFont(ImFont* font)
|
|||
g.Font = font;
|
||||
g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale);
|
||||
g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f;
|
||||
g.FontScale = g.FontSize / g.FontSize;
|
||||
g.FontScale = g.FontSize / g.Font->FontSize;
|
||||
|
||||
ImFontAtlas* atlas = g.Font->ContainerAtlas;
|
||||
g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue