Don't allow 0 width/height rectangle to be used with GDI+'s buffered graphics
This commit is contained in:
parent
f9883f6700
commit
0a9c2dc276
|
@ -30,6 +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);
|
||||
BufferedGraphics = _bufferedGraphicsContext.Allocate(ControlGraphics, r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue