From 1de735ba7c8bd1193c7c6d0d2939f10f4eb81353 Mon Sep 17 00:00:00 2001 From: "Adam D. Moss" Date: Wed, 18 Mar 2015 11:27:37 +0000 Subject: [PATCH] GetItemBoxMax: fix obsolete function copy-n-paste bug --- imgui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.h b/imgui.h index 874858f28..cfbf32048 100644 --- a/imgui.h +++ b/imgui.h @@ -394,7 +394,7 @@ namespace ImGui static inline void OpenNextNode(bool open) { ImGui::SetNextTreeNodeOpened(open, 0); } // OBSOLETE static inline bool GetWindowIsFocused() { return ImGui::IsWindowFocused(); } // OBSOLETE static inline ImVec2 GetItemBoxMin() { return GetItemRectMin(); } // OBSOLETE - static inline ImVec2 GetItemBoxMax() { return GetItemRectMin(); } // OBSOLETE + static inline ImVec2 GetItemBoxMax() { return GetItemRectMax(); } // OBSOLETE static inline bool IsMouseHoveringBox(const ImVec2& rect_min, const ImVec2& rect_max) { return IsMouseHoveringRect(rect_min, rect_max); } // OBSOLETE } // namespace ImGui