aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-11 15:02:44 -0400
committerMichael <[email protected]>2017-07-11 15:02:44 -0400
commitf911bf5f5b5bcd5385483348c1ccb172aa737126 (patch)
treee453c89d1a9dc2cb2db82106118d85529d501179 /ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs
parent2f54ddc6b05d7f48d6a22735f08917fab1f96ba4 (diff)
downloadshiftos_thereturn-f911bf5f5b5bcd5385483348c1ccb172aa737126.tar.gz
shiftos_thereturn-f911bf5f5b5bcd5385483348c1ccb172aa737126.tar.bz2
shiftos_thereturn-f911bf5f5b5bcd5385483348c1ccb172aa737126.zip
Fix fuzzy text rendering and fix wrapping
Diffstat (limited to 'ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs')
-rw-r--r--ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs
index 772abc4..e2b93fe 100644
--- a/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs
+++ b/ShiftOS.Frontend/GraphicsSubsystem/GraphicsContext.cs
@@ -160,9 +160,9 @@ namespace ShiftOS.Frontend.GraphicsSubsystem
var sFormat = System.Drawing.StringFormat.GenericTypographic;
sFormat.FormatFlags |= System.Drawing.StringFormatFlags.NoClip;
- gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
+ gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
- gfx.DrawString(text, font, System.Drawing.Brushes.White, 0, 0, sFormat);
+ gfx.DrawString(text, font, System.Drawing.Brushes.White, new System.Drawing.RectangleF(0, 0, bmp.Width, bmp.Height), sFormat);
}
var lck = bmp.LockBits(new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height), System.Drawing.Imaging.ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);