From 3d87bc7e8f4c65ea5a7ceb977611141d61c6428f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 22 Oct 2010 09:29:41 +0000 Subject: [PATCH] Fixed text anti-aliasing on Windows. --- Source/Examples/OpenTK/Test/GameWindowStates.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Examples/OpenTK/Test/GameWindowStates.cs b/Source/Examples/OpenTK/Test/GameWindowStates.cs index d29474f4..c53a3fa8 100644 --- a/Source/Examples/OpenTK/Test/GameWindowStates.cs +++ b/Source/Examples/OpenTK/Test/GameWindowStates.cs @@ -117,8 +117,8 @@ namespace Examples.Tests { int line = 0; - gfx.Clear(Color.MidnightBlue); - gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; + gfx.Clear(Color.Black); + gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; DrawString(gfx, String.Format("[1 - 4]: change WindowState (current: {0}).", this.WindowState), line++); DrawString(gfx, String.Format("[5 - 7]: change WindowBorder (current: {0}).", this.WindowBorder), line++); @@ -151,7 +151,7 @@ namespace Examples.Tests GL.Enable(EnableCap.Texture2D); GL.Enable(EnableCap.Blend); - GL.BlendFunc(BlendingFactorSrc.One, BlendingFactorDest.OneMinusSrcAlpha); + GL.BlendFunc(BlendingFactorSrc.One, BlendingFactorDest.OneMinusSrcColor); texture = GL.GenTexture(); GL.BindTexture(TextureTarget.Texture2D, texture);