Disable horizontal stretching at narrow aspect ratios. (#228)

This commit is contained in:
Skyth (Asilkan)
2025-01-28 15:33:06 +03:00
committed by GitHub
parent 996f23cc54
commit 87d9e0dac7
@@ -834,7 +834,7 @@ static void Draw(PPCContext& ctx, uint8_t* base, PPCFunc* original, uint32_t str
float scaleX = 1.0f;
float scaleY = 1.0f;
if ((modifier.flags & STRETCH_HORIZONTAL) != 0)
if ((modifier.flags & STRETCH_HORIZONTAL) != 0 && g_aspectRatio >= WIDE_ASPECT_RATIO)
{
scaleX = Video::s_viewportWidth / 1280.0f;
}