mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Using GetCurrentWindowRead() instead of GetCurrentWindow()
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user