summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManager.h
diff options
context:
space:
mode:
authorFiloppi <filippotarpini@hotmail.it>2023-12-18 01:00:47 +0200
committerFiloppi <filippotarpini@hotmail.it>2024-02-20 03:09:11 +0200
commit3f102ea8c2ccdce4365fdbd1cd04bf4284ba2f11 (patch)
tree9379388c254e87f7233d0ce41377c323b7d3703a /Source/Core/VideoCommon/FramebufferManager.h
parentccf24350478c9ab7fc852f4cf2d11a08ade41618 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.h')
-rw-r--r--Source/Core/VideoCommon/FramebufferManager.h2
1 files changed, 1 insertions, 1 deletions
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<AbstractTexture> m_efb_color_texture;