Fixed unused static function warning for some compilers. (#2793)

This commit is contained in:
omar
2019-09-18 13:21:12 +02:00
parent 098591fe4c
commit 74e01e62ce
2 changed files with 8 additions and 12 deletions

View File

@ -1495,6 +1495,7 @@ namespace ImGui
IMGUI_API void SetCurrentFont(ImFont* font);
inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; }
inline ImDrawList* GetForegroundDrawList(ImGuiWindow*) { ImGuiContext& g = *GImGui; return &g.ForegroundDrawList; } // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches.
// Init
IMGUI_API void Initialize(ImGuiContext* context);