From 2ac3db319ba45401f68625fa674cfe4bfb210d5e Mon Sep 17 00:00:00 2001 From: Sour Date: Mon, 24 Jun 2019 22:27:44 -0400 Subject: [PATCH] Libretro: Fixed aspect ratio when using 'no stretching' option --- Libretro/LibretroRenderer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libretro/LibretroRenderer.h b/Libretro/LibretroRenderer.h index 6211f6d5..2a36754f 100644 --- a/Libretro/LibretroRenderer.h +++ b/Libretro/LibretroRenderer.h @@ -58,7 +58,7 @@ public: float ratio = (float)_console->GetSettings()->GetAspectRatio(_console); if(ratio == 0.0f) { - ratio = 1.0f; + ratio = (float)256 / 240; } ratio *= (float)_console->GetSettings()->GetOverscanDimensions().GetScreenWidth() / _console->GetSettings()->GetOverscanDimensions().GetScreenHeight() / 256 * 240;