Hotkeys: Fix Toggle OSD hotkey

This commit is contained in:
Stenzek 2025-01-14 13:49:49 +10:00
parent 88e18a8659
commit 3a13806f73
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -134,6 +134,8 @@ static void HotkeyToggleOSD()
g_settings.display_show_status_indicators ^= Host::GetBoolSettingValue("Display", "ShowStatusIndicators", true); 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_inputs ^= Host::GetBoolSettingValue("Display", "ShowInputs", false);
g_settings.display_show_enhancements ^= Host::GetBoolSettingValue("Display", "ShowEnhancements", false); g_settings.display_show_enhancements ^= Host::GetBoolSettingValue("Display", "ShowEnhancements", false);
GPUThread::UpdateSettings(true, false);
} }
#ifndef __ANDROID__ #ifndef __ANDROID__

View File

@ -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) 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; return;
const float shadow_offset = std::ceil(1.0f * scale); const float shadow_offset = std::ceil(1.0f * scale);