Libretro: Fixed aspect ratio when using 'no stretching' option

This commit is contained in:
Sour 2019-06-24 22:27:44 -04:00
parent 886ae6425f
commit 2ac3db319b

View File

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