From 427aae5214e376c8ab31ff25efdf4198e67f3f9c Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 17 Jan 2025 22:22:12 +0300 Subject: [PATCH] Fix button guide offset. --- UnleashedRecomp/ui/button_guide.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/ui/button_guide.cpp b/UnleashedRecomp/ui/button_guide.cpp index b983a74f..2df8a0e9 100644 --- a/UnleashedRecomp/ui/button_guide.cpp +++ b/UnleashedRecomp/ui/button_guide.cpp @@ -229,11 +229,8 @@ void ButtonGuide::Draw() auto drawList = ImGui::GetForegroundDrawList(); auto& res = ImGui::GetIO().DisplaySize; - auto regionMarginX = Scale(g_sideMargins); - auto regionHeight = Scale(102); - - ImVec2 regionMin = { regionMarginX, res.y - regionHeight }; - ImVec2 regionMax = { res.x - regionMarginX, res.y }; + ImVec2 regionMin = { Scale(g_aspectRatioOffsetX + g_sideMargins), Scale(g_aspectRatioOffsetY * 2.0f + 720.0f - 102.0f) }; + ImVec2 regionMax = { Scale(g_aspectRatioOffsetX + 1280.0f - g_sideMargins), Scale(g_aspectRatioOffsetY * 2.0f + 720.0f) }; auto textMarginX = Scale(57); auto textMarginY = Scale(8);