diff options
| author | Michael <[email protected]> | 2017-07-19 16:08:33 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-19 16:08:33 -0400 |
| commit | b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e (patch) | |
| tree | 4502ced3e939ff3725bc7c1925f1ba88b62653d8 /ShiftOS.Frontend/GraphicsSubsystem | |
| parent | 3fe1872f5f81f8203e57cbba2dca6ce833f08f22 (diff) | |
| download | shiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.tar.gz shiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.tar.bz2 shiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.zip | |
Fix terminal and add support for animations
Diffstat (limited to 'ShiftOS.Frontend/GraphicsSubsystem')
| -rw-r--r-- | ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs index 68026ef..331018f 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs @@ -159,7 +159,7 @@ namespace ShiftOS.Frontend.GraphicsSubsystem { var sFormat = System.Drawing.StringFormat.GenericTypographic; sFormat.FormatFlags |= System.Drawing.StringFormatFlags.NoClip; - sFormat.FormatFlags |= System.Drawing.StringFormatFlags.DisplayFormatControl; + gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; gfx.DrawString(text, font, System.Drawing.Brushes.White, new System.Drawing.RectangleF(0, 0, bmp.Width, bmp.Height), sFormat); diff --git a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs index a88f28e..d16685b 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs @@ -25,10 +25,10 @@ namespace ShiftOS.Frontend.GraphicsSubsystem topLevels.Add(ctrl); } - public static void LayoutUpdate() + public static void LayoutUpdate(GameTime gameTime) { foreach (var toplevel in topLevels.ToArray()) - toplevel.Layout(); + toplevel.Layout(gameTime); } public static void Animate(object owner, System.Reflection.PropertyInfo prop, double from, double to, int timeMs) @@ -135,7 +135,7 @@ namespace ShiftOS.Frontend.GraphicsSubsystem { if (!topLevels.Contains(ctrl)) topLevels.Add(ctrl); - ctrl.Layout(); + } public static void InvalidateAll() |
