From 26aa627deb45277e5e6784a85cb0e85da67c0b64 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 15 Aug 2020 23:49:28 +1000 Subject: [PATCH] GPU/HW: Include resolution in scale change message --- src/core/gpu_hw.cpp | 8 ++++++++ src/core/host_interface.cpp | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 59eabdbd0..3d1601be8 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -96,6 +96,14 @@ void GPU_HW::UpdateHWSettings(bool* framebuffer_changed, bool* shaders_changed) m_scaled_dithering != g_settings.gpu_scaled_dithering || m_texture_filtering != g_settings.gpu_texture_filtering || m_using_uv_limits != use_uv_limits); + if (m_resolution_scale != resolution_scale) + { + g_host_interface->AddFormattedOSDMessage(10.0f, "Resolution scale set to %ux (display %ux%u, VRAM %ux%u)", + resolution_scale, m_crtc_state.display_vram_width * resolution_scale, + resolution_scale * m_crtc_state.display_vram_height, + VRAM_WIDTH * resolution_scale, VRAM_HEIGHT * resolution_scale); + } + m_resolution_scale = resolution_scale; m_true_color = g_settings.gpu_true_color; m_scaled_dithering = g_settings.gpu_scaled_dithering; diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 2aa719979..7fdd83b9f 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -676,9 +676,6 @@ void HostInterface::ModifyResolutionScale(s32 increment) return; g_settings.gpu_resolution_scale = new_resolution_scale; - AddFormattedOSDMessage(5.0f, "Resolution scale set to %ux (%ux%u)", g_settings.gpu_resolution_scale, - GPU::VRAM_WIDTH * g_settings.gpu_resolution_scale, - GPU::VRAM_HEIGHT * g_settings.gpu_resolution_scale); if (!System::IsShutdown()) {