From 541f1d5550a044e0a14bb9fe5c9a44f99d98d1f8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 6 Jul 2022 16:40:30 +0200 Subject: [PATCH] ui: Fixed positioning of UI --- main/source/window/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 676f94c42..99ceb3e20 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -197,7 +197,7 @@ namespace hex { ImGui::NewFrame(); ImGuiViewport *viewport = ImGui::GetMainViewport(); - ImGui::SetNextWindowPos(ImHexApi::System::getMainWindowPosition() + ImVec2(0, ImGui::GetTextLineHeightWithSpacing())); + ImGui::SetNextWindowPos(ImVec2(0, ImGui::GetTextLineHeightWithSpacing())); ImGui::SetNextWindowSize(ImHexApi::System::getMainWindowSize() - ImVec2(0, ImGui::GetTextLineHeightWithSpacing())); ImGui::SetNextWindowViewport(viewport->ID); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);