From 4ddab3609d36624fcadad92e4b540c3333fb2ee0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 3 Jul 2021 16:50:35 +1000 Subject: [PATCH] FullscreenUI: Fix settings menu offscreen with debug menu --- src/frontend-common/fullscreen_ui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index a56c99c9b..8d1b0c9e0 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -1347,8 +1347,10 @@ void DrawSettingsWindow() EndFullscreenWindow(); - if (BeginFullscreenWindow(ImVec2(0.0f, ImGuiFullscreen::g_menu_bar_size + heading_size.y), - ImVec2(io.DisplaySize.x, io.DisplaySize.y - heading_size.y), "settings_parent")) + if (BeginFullscreenWindow( + ImVec2(0.0f, ImGuiFullscreen::g_menu_bar_size + heading_size.y), + ImVec2(io.DisplaySize.x, io.DisplaySize.y - heading_size.y - ImGuiFullscreen::g_menu_bar_size), + "settings_parent")) { if (ImGui::IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed)) {