From 51547d208ae8d3d4998a3333f3886ff9327b5d09 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 10 Jun 2012 03:53:32 +0000 Subject: [PATCH] no blurry presentation on ati cards by setting minify filter to point. to be honest, i cant fathom why this fixed it, since we're magnifying, not minifying. maybe its auto-aniso heuristic was getting triggered. further research: setting card to fixed 2x aniso disables heuristics and would have fixed this issue, since the correct mag filter (point) would get chosen as we specified. however this fix is still technically correct. --- BizHawk.MultiClient/RenderPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/RenderPanel.cs b/BizHawk.MultiClient/RenderPanel.cs index 69e838d0a0..82460584a9 100644 --- a/BizHawk.MultiClient/RenderPanel.cs +++ b/BizHawk.MultiClient/RenderPanel.cs @@ -367,7 +367,7 @@ namespace BizHawk.MultiClient if (overlay) flags |= SpriteFlags.AlphaBlend; Sprite.Begin(flags); Device.SetSamplerState(0, SamplerState.MagFilter, TextureFilter.Point); - Device.SetSamplerState(1, SamplerState.MagFilter, TextureFilter.Point); + Device.SetSamplerState(0, SamplerState.MinFilter, TextureFilter.Point); Sprite.Transform = Matrix.Scaling(finalScale, finalScale, 0f); Sprite.Draw(Texture.Texture, new Rectangle(0, 0, surface.Width, surface.Height), new Vector3(surface.Width / 2f, surface.Height / 2f, 0), new Vector3(backingControl.Size.Width / 2f / finalScale, backingControl.Size.Height / 2f / finalScale, 0), Color.White); if (overlay) Device.SetRenderState(RenderState.AlphaBlendEnable, false);