This should be Max, not Min
This commit is contained in:
parent
0a9c2dc276
commit
3c1248547f
|
@ -30,8 +30,8 @@ namespace BizHawk.Bizware.Graphics
|
||||||
ControlGraphics?.Dispose();
|
ControlGraphics?.Dispose();
|
||||||
BufferedGraphics?.Dispose();
|
BufferedGraphics?.Dispose();
|
||||||
(ControlGraphics, var r) = _getControlRenderContext();
|
(ControlGraphics, var r) = _getControlRenderContext();
|
||||||
r.Width = Math.Min(1, r.Width);
|
r.Width = Math.Max(1, r.Width);
|
||||||
r.Height = Math.Min(1, r.Height);
|
r.Height = Math.Max(1, r.Height);
|
||||||
BufferedGraphics = _bufferedGraphicsContext.Allocate(ControlGraphics, r);
|
BufferedGraphics = _bufferedGraphicsContext.Allocate(ControlGraphics, r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue