From 2da89f4b9bbda952f9034808428c986726d3c8bb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 11 May 2023 18:44:10 +0200 Subject: [PATCH] fix: Position of restore layout button being wrong with different scalings --- plugins/builtin/source/content/welcome_screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index ef116c8be..691b4c75a 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -428,10 +428,10 @@ namespace hex::plugin::builtin { auto loadDefaultText = "hex.builtin.layouts.none.restore_default"_lang; auto textSize = ImGui::CalcTextSize(loadDefaultText); - auto textPos = scaled(ImVec2( + auto textPos = ImVec2( (ImGui::GetContentRegionAvail().x - textSize.x) / 2, imagePos.y + imageSize.y - )); + ); ImGui::SetCursorPos(textPos); if (ImGui::DimmedButton(loadDefaultText)){