From 3a13806f73cae77d2379479fe70737bd9dc311ae Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 14 Jan 2025 13:49:49 +1000 Subject: [PATCH] Hotkeys: Fix Toggle OSD hotkey --- src/core/hotkeys.cpp | 2 ++ src/core/imgui_overlays.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/hotkeys.cpp b/src/core/hotkeys.cpp index 6e213dbb7..c8e53eeb7 100644 --- a/src/core/hotkeys.cpp +++ b/src/core/hotkeys.cpp @@ -134,6 +134,8 @@ static void HotkeyToggleOSD() g_settings.display_show_status_indicators ^= Host::GetBoolSettingValue("Display", "ShowStatusIndicators", true); g_settings.display_show_inputs ^= Host::GetBoolSettingValue("Display", "ShowInputs", false); g_settings.display_show_enhancements ^= Host::GetBoolSettingValue("Display", "ShowEnhancements", false); + + GPUThread::UpdateSettings(true, false); } #ifndef __ANDROID__ diff --git a/src/core/imgui_overlays.cpp b/src/core/imgui_overlays.cpp index 341fdb4c6..1365155d4 100644 --- a/src/core/imgui_overlays.cpp +++ b/src/core/imgui_overlays.cpp @@ -609,7 +609,7 @@ void ImGuiManager::DrawMediaCaptureOverlay(float& position_y, float scale, float void ImGuiManager::DrawFrameTimeOverlay(float& position_y, float scale, float margin, float spacing) { - if (!g_settings.display_show_frame_times || GPUThread::IsSystemPaused()) + if (!g_gpu_settings.display_show_frame_times || GPUThread::IsSystemPaused()) return; const float shadow_offset = std::ceil(1.0f * scale);