mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Fonts: internals: renamed g.FontSizeBeforeScaling to g.FontSizeBase for consistency.
# Conflicts: # imgui_internal.h
This commit is contained in:
parent
3c27c643a9
commit
2d2b1cee6b
4 changed files with 16 additions and 15 deletions
|
|
@ -3193,7 +3193,7 @@ static void ImFontAtlasBuildNotifySetFont(ImFontAtlas* atlas, ImFont* old_font,
|
|||
bool need_bind_ctx = ctx != curr_ctx;
|
||||
if (need_bind_ctx)
|
||||
ImGui::SetCurrentContext(ctx);
|
||||
ImGui::SetCurrentFont(new_font, ctx->FontSizeBeforeScaling, ctx->FontSize);
|
||||
ImGui::SetCurrentFont(new_font, ctx->FontSizeBase, ctx->FontSize);
|
||||
if (need_bind_ctx)
|
||||
ImGui::SetCurrentContext(curr_ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue