From cdb40b2b834429d2047d9b159a3a4a24c677ca73 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 25 Jul 2017 13:17:19 -0400 Subject: Working-ish out of box existential crisis --- ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShiftOS.Frontend/GraphicsSubsystem') diff --git a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs index 4ec1292..b45b2ff 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs @@ -90,8 +90,8 @@ namespace ShiftOS.Frontend.GraphicsSubsystem { _target = new RenderTarget2D( graphics, - ctrl.Width, - ctrl.Height, + Math.Max(1,ctrl.Width), + Math.Max(1,ctrl.Height), false, graphics.PresentationParameters.BackBufferFormat, DepthFormat.Depth24); -- cgit v1.2.3