aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GraphicsSubsystem
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-25 13:17:19 -0400
committerMichael <[email protected]>2017-07-25 13:17:19 -0400
commitcdb40b2b834429d2047d9b159a3a4a24c677ca73 (patch)
tree9f82b7b82a3c20f1219cf947560601a57bfa7dd6 /ShiftOS.Frontend/GraphicsSubsystem
parent27ffe54db75bc6c1cf95a0de1a057aa5ba5c952e (diff)
downloadshiftos_thereturn-cdb40b2b834429d2047d9b159a3a4a24c677ca73.tar.gz
shiftos_thereturn-cdb40b2b834429d2047d9b159a3a4a24c677ca73.tar.bz2
shiftos_thereturn-cdb40b2b834429d2047d9b159a3a4a24c677ca73.zip
Working-ish out of box existential crisis
Diffstat (limited to 'ShiftOS.Frontend/GraphicsSubsystem')
-rw-r--r--ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs4
1 files changed, 2 insertions, 2 deletions
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);