mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-26 11:44:45 +00:00
Avoid crash on some systems with FMV software switch
Avoid crash on some systems switching HW><SW in fullscreen aspect ratio's with FMV Software switch. Replaces previous zoom adjusting fix with a more efficent one. Squashed a small improvement into commit.
This commit is contained in:
parent
6defe6e07d
commit
5871874f70
@ -184,6 +184,8 @@ void GSPanel::DoResize()
|
||||
zoom = std::max( (float)arr, (float)(1.0/arr) );
|
||||
|
||||
viewport.Scale(zoom, zoom*g_Conf->GSWindow.StretchY.ToFloat()/100.0 );
|
||||
if (viewport == client && EmuConfig.Gamefixes.FMVinSoftwareHack && g_Conf->GSWindow.IsFullscreen)
|
||||
viewport.x += 1; //avoids crash on some systems switching HW><SW in fullscreen aspect ratio's with FMV Software switch.
|
||||
SetSize( viewport );
|
||||
CenterOnParent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user