mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-04 11:04:33 +00:00
Fonts: internals: renamed g.FontSizeBeforeScaling to g.FontSizeBase for consistency.
# Conflicts: # imgui_internal.h
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user