This should be Max, not Min

This commit is contained in:
CasualPokePlayer 2024-08-25 22:10:27 -07:00
parent 0a9c2dc276
commit 3c1248547f
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ namespace BizHawk.Bizware.Graphics
ControlGraphics?.Dispose();
BufferedGraphics?.Dispose();
(ControlGraphics, var r) = _getControlRenderContext();
r.Width = Math.Min(1, r.Width);
r.Height = Math.Min(1, r.Height);
r.Width = Math.Max(1, r.Width);
r.Height = Math.Max(1, r.Height);
BufferedGraphics = _bufferedGraphicsContext.Allocate(ControlGraphics, r);
}
}