Libretro: Fixed aspect ratio when using 'no stretching' option
This commit is contained in:
parent
886ae6425f
commit
2ac3db319b
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public:
|
||||||
|
|
||||||
float ratio = (float)_console->GetSettings()->GetAspectRatio(_console);
|
float ratio = (float)_console->GetSettings()->GetAspectRatio(_console);
|
||||||
if(ratio == 0.0f) {
|
if(ratio == 0.0f) {
|
||||||
ratio = 1.0f;
|
ratio = (float)256 / 240;
|
||||||
}
|
}
|
||||||
ratio *= (float)_console->GetSettings()->GetOverscanDimensions().GetScreenWidth() / _console->GetSettings()->GetOverscanDimensions().GetScreenHeight() / 256 * 240;
|
ratio *= (float)_console->GetSettings()->GetOverscanDimensions().GetScreenWidth() / _console->GetSettings()->GetOverscanDimensions().GetScreenHeight() / 256 * 240;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue