From 3f102ea8c2ccdce4365fdbd1cd04bf4284ba2f11 Mon Sep 17 00:00:00 2001 From: Filoppi Date: Mon, 18 Dec 2023 01:00:47 +0200 Subject: Video: Make the game resolution (within the window) snap to the XFB size if they are within a ~1 pixel treshold on one axis only. This takes care of making the image clearer in some edge cases where the game was already running at near perfect 4:3 with no stretching, and the VI aspect ratio didn't match the XFB by one pixel, making the image stretched and blurry. -Video: Fix `FindClosestIntegerResolution() using the window aspect ratio and not the draw aspect ratio, causing it to prefer stretching over black bars in cases when it wasn't desirable. --- Source/Core/VideoCommon/FramebufferManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/FramebufferManager.h') diff --git a/Source/Core/VideoCommon/FramebufferManager.h b/Source/Core/VideoCommon/FramebufferManager.h index 7921a70d41..e6e7cdc920 100644 --- a/Source/Core/VideoCommon/FramebufferManager.h +++ b/Source/Core/VideoCommon/FramebufferManager.h @@ -194,7 +194,7 @@ protected: void DoLoadState(PointerWrap& p); void DoSaveState(PointerWrap& p); - float m_efb_scale = 0.0f; + float m_efb_scale = 1.0f; PixelFormat m_prev_efb_format; std::unique_ptr m_efb_color_texture; -- cgit v1.2.3