mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-04 07:31:19 +00:00
Libretro: Fixed aspect ratio when using 'no stretching' option
This commit is contained in:
parent
886ae6425f
commit
2ac3db319b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user