dont crash when autoprescale is enabled and it's asked to _shrink_
This commit is contained in:
parent
85cf6e80cd
commit
2d29b8b245
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue