mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-20 07:29:43 +00:00
Internals: added FontScale storage (amend 0f63d3e).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user