From 99b9f1c93c4fd8ae6edb707bd8e22c7ca58e3d7a Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 26 Sep 2017 11:23:06 +0200 Subject: [PATCH] Fix static misusage error with decent compilers. Error introduced in 4b82759598e34aed179177ecaa00e774c0d23484 --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index 4bfa9430..c6008ff6 100644 --- a/imgui.h +++ b/imgui.h @@ -488,7 +488,7 @@ namespace ImGui // Obsolete functions (Will be removed! Also see 'API BREAKING CHANGES' section in imgui.cpp) #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - static void SetNextWindowPosCenter(ImGuiCond cond = 0); // OBSOLETE 1.52+ + void SetNextWindowPosCenter(ImGuiCond cond = 0); // OBSOLETE 1.52+ static inline bool IsItemHoveredRect() { return IsItemRectHovered(); } // OBSOLETE 1.51+ static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETE 1.51+. This was partly broken. You probably wanted to use ImGui::GetIO().WantCaptureMouse instead. static inline bool IsMouseHoveringAnyWindow() { return IsAnyWindowHovered(); } // OBSOLETE 1.51+