From 4ceeb58dbce10d9bf1a02072d949ac16356dd679 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 2 Feb 2025 17:14:33 +1000 Subject: [PATCH] GPU: Use display size for calculating internal screenshot size Fixes detail being lost due to added padding when not cropping. --- src/core/gpu_presenter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_presenter.cpp b/src/core/gpu_presenter.cpp index dd820dfe6..f97c5eb43 100644 --- a/src/core/gpu_presenter.cpp +++ b/src/core/gpu_presenter.cpp @@ -1165,8 +1165,10 @@ GSVector2i GPUPresenter::CalculateScreenshotSize(DisplayScreenshotMode mode) con { if (mode == DisplayScreenshotMode::InternalResolution) { - float f_width = static_cast(m_display_texture_view_width); - float f_height = static_cast(m_display_texture_view_height); + float f_width = + m_display_width * (static_cast(m_display_texture_view_width) / static_cast(m_display_vram_width)); + float f_height = m_display_height * + (static_cast(m_display_texture_view_height) / static_cast(m_display_vram_height)); if (!g_gpu_settings.gpu_show_vram) GPU::ApplyPixelAspectRatioToSize(m_display_pixel_aspect_ratio, &f_width, &f_height);