1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-28 09:30:56 +01:00

Using GetCurrentWindowRead() instead of GetCurrentWindow()

This commit is contained in:
ocornut 2016-06-29 10:30:42 +02:00
parent fe7274b6c7
commit 5525c2356a

View File

@ -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;
}