From 5525c2356ab9bfeb3840fa80741f50f6e7013365 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 29 Jun 2016 10:30:42 +0200 Subject: [PATCH] Using GetCurrentWindowRead() instead of GetCurrentWindow() --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index 083dfd62..d8ec460e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5082,13 +5082,13 @@ ImVec2 ImGui::GetCursorPos() float ImGui::GetCursorPosX() { - ImGuiWindow* window = GetCurrentWindow(); + ImGuiWindow* window = GetCurrentWindowRead(); return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; } float ImGui::GetCursorPosY() { - ImGuiWindow* window = GetCurrentWindow(); + ImGuiWindow* window = GetCurrentWindowRead(); return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; }