Fonts: rework UpdateCurrentFontSize() check. (#9364)

Consistent with line above.
This commit is contained in:
Flyinghead
2026-04-12 15:50:54 +02:00
committed by ocornut
parent 2dc64f99bc
commit 84b4b35902

View File

@@ -9107,7 +9107,7 @@ void ImGui::UpdateCurrentFontSize(float restore_font_size_after_scaling)
}
g.FontBaked = (g.Font != NULL && window != NULL) ? g.Font->GetFontBaked(final_size) : NULL;
g.FontBakedScale = (g.Font != NULL && window != NULL) ? (g.FontSize / g.FontBaked->Size) : 0.0f;
g.FontBakedScale = (g.FontBaked != NULL) ? (g.FontSize / g.FontBaked->Size) : 0.0f;
g.DrawListSharedData.FontScale = g.FontBakedScale;
}