mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-18 09:28:36 +00:00
Fonts: rename many internal functions for consistency. No other changes.
This commit is contained in:
10
imgui.cpp
10
imgui.cpp
@@ -15704,10 +15704,10 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
||||
if (ImGuiFreeType::DebugEditFontBuilderFlags(&loader_flags))
|
||||
{
|
||||
for (ImFont* font : atlas->Fonts)
|
||||
ImFontAtlasBuildDestroyFontOutput(atlas, font);
|
||||
ImFontAtlasFontDestroyOutput(atlas, font);
|
||||
atlas->FontBuilderFlags = loader_flags;
|
||||
for (ImFont* font : atlas->Fonts)
|
||||
ImFontAtlasBuildInitFontOutput(atlas, font);
|
||||
ImFontAtlasFontInitOutput(atlas, font);
|
||||
}
|
||||
}
|
||||
#else
|
||||
@@ -15733,7 +15733,7 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
||||
atlas->CompactCache();
|
||||
SameLine();
|
||||
if (Button("Grow"))
|
||||
ImFontAtlasBuildGrowTexture(atlas);
|
||||
ImFontAtlasTextureGrow(atlas);
|
||||
SameLine();
|
||||
if (Button("Clear All"))
|
||||
ImFontAtlasBuildClear(atlas);
|
||||
@@ -16666,9 +16666,9 @@ void ImGui::DebugNodeFont(ImFont* font)
|
||||
Text("FreeType Loader Flags: 0x%08X", loader_flags);
|
||||
if (ImGuiFreeType::DebugEditFontBuilderFlags(&loader_flags))
|
||||
{
|
||||
ImFontAtlasBuildDestroyFontOutput(atlas, font);
|
||||
ImFontAtlasFontDestroyOutput(atlas, font);
|
||||
src->FontBuilderFlags = loader_flags;
|
||||
ImFontAtlasBuildInitFontOutput(atlas, font);
|
||||
ImFontAtlasFontInitOutput(atlas, font);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user