From 8be2b66ebbb0633cd7bece509f13c497d3d36453 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 4 Jul 2021 15:59:52 +1000 Subject: [PATCH] CommonHostInterface: Remove system paused/resumed message --- src/frontend-common/common_host_interface.cpp | 5 ----- src/frontend-common/fullscreen_ui.cpp | 9 +-------- src/frontend-common/fullscreen_ui.h | 1 - 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 784493f5c..af4846496 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1051,11 +1051,6 @@ void CommonHostInterface::OnSystemCreated() void CommonHostInterface::OnSystemPaused(bool paused) { - ReportFormattedMessage("System %s.", paused ? "paused" : "resumed"); - - if (m_fullscreen_ui_enabled) - FullscreenUI::SystemPaused(paused); - if (paused) { if (IsFullscreen() && !m_fullscreen_ui_enabled) diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index 0be508606..52a2a408d 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -233,8 +233,6 @@ bool Initialize(CommonHostInterface* host_interface) if (System::IsValid()) SystemCreated(); - if (System::IsPaused()) - SystemPaused(true); return true; } @@ -273,11 +271,6 @@ void SystemDestroyed() ClearImGuiFocus(); } -void SystemPaused(bool paused) -{ - // -} - static void PauseForMenuOpen() { s_was_paused_on_quick_menu_open = System::IsPaused(); @@ -1192,7 +1185,7 @@ static void DrawAchievementsLoginWindow() ImGui::SetNextWindowPos(ImGui::GetIO().DisplaySize * 0.5f, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, LayoutScale(10.0f)); - ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, LayoutScale(10.0f, 10.0f)); + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, LayoutScale(20.0f, 20.0f)); ImGui::PushFont(g_large_font); bool is_open = true; diff --git a/src/frontend-common/fullscreen_ui.h b/src/frontend-common/fullscreen_ui.h index fa2081c80..caf61d59c 100644 --- a/src/frontend-common/fullscreen_ui.h +++ b/src/frontend-common/fullscreen_ui.h @@ -46,7 +46,6 @@ bool HasActiveWindow(); void UpdateSettings(); void SystemCreated(); void SystemDestroyed(); -void SystemPaused(bool paused); void OpenQuickMenu(); void CloseQuickMenu();