From 0c3fc6f85812621fb036f2d5bc730f68e0b99a81 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 16 Aug 2022 11:49:56 +0200 Subject: [PATCH] ui: Moved welcome screen close button further to the left --- plugins/builtin/source/content/welcome_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index 688a0491b..112d5aad2 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -325,7 +325,7 @@ namespace hex::plugin::builtin { ImGui::EndTable(); } - ImGui::SetCursorPos(ImVec2(ImGui::GetWindowSize().x - ImGui::CalcTextSize("X").x * 2, 0)); + ImGui::SetCursorPos(ImVec2(ImGui::GetContentRegionAvail().x, 0)); if (ImGui::Hyperlink("X")) { auto provider = ImHexApi::Provider::createProvider("hex.builtin.provider.null"); if (provider != nullptr)