From 6114fe5af6faa679c477cf8eb9fccb95029df3b5 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 25 Jul 2017 17:57:50 -0400 Subject: start work on main menu --- ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs | 2 +- ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ShiftOS.Frontend/GraphicsSubsystem') diff --git a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs index 331018f..e75b00d 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs @@ -118,7 +118,7 @@ namespace ShiftOS.Frontend.GraphicsSubsystem x += _startx; y += _starty; var tex2 = new Texture2D(_graphicsDevice, 1, 1, false, SurfaceFormat.Color); - byte[] colordata = new byte[] { color.B, color.G, color.R, color.A }; + byte[] colordata = new byte[] { 255, 255, 255, 255 }; tex2.SetData(colordata); _spritebatch.Draw(tex2, new Rectangle(x, y, width, height), color); } diff --git a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs index b45b2ff..7bb534e 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs @@ -104,8 +104,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