mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-06 05:17:47 +00:00
(Breaking) Fonts: removed PushFontSize(), PopFontSize().
This commit is contained in:
@@ -5227,7 +5227,7 @@ ImFontBaked* ImFont::GetFontBaked(float size, float density)
|
||||
ImFontBaked* baked = LastBaked;
|
||||
|
||||
// Round font size
|
||||
// - ImGui::PushFontSize() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
|
||||
// - ImGui::PushFont() will already round, but other paths calling GetFontBaked() directly also needs it (e.g. ImFontAtlasBuildPreloadAllGlyphRanges)
|
||||
size = ImGui::GetRoundedFontSize(size);
|
||||
|
||||
if (density < 0.0f)
|
||||
|
||||
Reference in New Issue
Block a user