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.
This commit is contained in:
Filoppi
2023-12-18 01:00:47 +02:00
parent ccf2435047
commit 3f102ea8c2
3 changed files with 48 additions and 6 deletions

View File

@ -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;