From de36fefad4c969df01d178c3e1a149ebc83ef0fd Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 29 Nov 2025 18:27:29 +1000 Subject: [PATCH] GPU: Re-add missing AR correction Regression from 2b26690565796f80c8b641d26ac5a256b87ba2ad. --- src/core/gpu.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index fbdf30720..7cb186a7a 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -662,14 +662,17 @@ float GPU::ComputePixelAspectRatio() const if (!wi.IsSurfaceless() && wi.surface_width > 0 && wi.surface_height > 0) { // Correction is applied to the GTE for stretch to fit, that way it fills the window. - sar /= ComputeAspectRatioCorrection(); dar = static_cast(wi.surface_width) / static_cast(wi.surface_height); } } - else if (dar_type != DisplayAspectRatio::Auto()) + else { - dar = static_cast(g_settings.display_aspect_ratio.numerator) / - static_cast(g_settings.display_aspect_ratio.denominator); + sar /= ComputeAspectRatioCorrection(); + if (dar_type != DisplayAspectRatio::Auto()) + { + dar = static_cast(g_settings.display_aspect_ratio.numerator) / + static_cast(g_settings.display_aspect_ratio.denominator); + } } return (dar / sar);