mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-01 17:02:45 +00:00
Fix build with IMGUI_DISABLE_DEMO_WINDOWS
This commit is contained in:
parent
029c83c73e
commit
88a24fb896
@ -10910,7 +10910,9 @@ static void MetricsHelpMarker(const char* desc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef IMGUI_DISABLE_DEMO_WINDOWS
|
||||||
namespace ImGui { void ShowFontAtlas(ImFontAtlas* atlas); }
|
namespace ImGui { void ShowFontAtlas(ImFontAtlas* atlas); }
|
||||||
|
#endif
|
||||||
|
|
||||||
void ImGui::ShowMetricsWindow(bool* p_open)
|
void ImGui::ShowMetricsWindow(bool* p_open)
|
||||||
{
|
{
|
||||||
@ -11115,12 +11117,14 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Details for Fonts
|
// Details for Fonts
|
||||||
|
#ifndef IMGUI_DISABLE_DEMO_WINDOWS
|
||||||
ImFontAtlas* atlas = g.IO.Fonts;
|
ImFontAtlas* atlas = g.IO.Fonts;
|
||||||
if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size))
|
if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size))
|
||||||
{
|
{
|
||||||
ShowFontAtlas(atlas);
|
ShowFontAtlas(atlas);
|
||||||
TreePop();
|
TreePop();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Details for Docking
|
// Details for Docking
|
||||||
#ifdef IMGUI_HAS_DOCK
|
#ifdef IMGUI_HAS_DOCK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user