From 97a5a97370bc8f4d721791457d551c6bd2b0b67c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 5 Aug 2017 22:57:40 -0400 Subject: skin loader and ui tint --- ShiftOS.Frontend/ShiftOS.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ShiftOS.Frontend/ShiftOS.cs') diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs index 65ec7aa..7cc142e 100644 --- a/ShiftOS.Frontend/ShiftOS.cs +++ b/ShiftOS.Frontend/ShiftOS.cs @@ -29,6 +29,8 @@ namespace ShiftOS.Frontend private bool failEnded = false; private double failCharAddMS = 0; + public Color UITint = Color.White; + private bool DisplayDebugInfo = false; private KeyboardListener keyboardListener = new KeyboardListener (); @@ -59,7 +61,7 @@ namespace ShiftOS.Frontend ); Content.RootDirectory = "Content"; - + graphicsDevice.PreferMultiSampling = true; //Make window borderless Window.IsBorderless = false; @@ -327,9 +329,10 @@ namespace ShiftOS.Frontend var rasterizerState = new RasterizerState(); rasterizerState.CullMode = CullMode.None; rasterizerState.MultiSampleAntiAlias = true; + spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied, - SamplerState.LinearClamp, DepthStencilState.Default, + SamplerState.LinearWrap, DepthStencilState.Default, rasterizerState); //Draw the desktop BG. UIManager.DrawBackgroundLayer(GraphicsDevice, spriteBatch, 640, 480); -- cgit v1.2.3