dont crash when autoprescale is enabled and it's asked to _shrink_

This commit is contained in:
zeromus 2017-06-29 04:46:15 -05:00
parent 85cf6e80cd
commit 2d29b8b245
1 changed files with 3 additions and 0 deletions

View File

@ -395,6 +395,9 @@ namespace BizHawk.Client.EmuHawk.Filters
XIS = OutputSize.Width / state.SurfaceFormat.Size.Width;
YIS = OutputSize.Height / state.SurfaceFormat.Size.Height;
if (XIS == 0) XIS = 1;
if (YIS == 0) YIS = 1;
OutputSize = state.SurfaceFormat.Size;
if (XIS <= 1 && YIS <= 1)