From 830fc1ee9abce3e4cc02995ab14de462f4b8a8cf Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 27 Feb 2020 11:54:21 -0500 Subject: [PATCH] set font to be PointClamped GitOrigin-RevId: 6f21d2f11df5ba30061ca2994988f5bbd5d38b1d --- Shared/Scene.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shared/Scene.cs b/Shared/Scene.cs index 1bc7bb0..c665d7f 100644 --- a/Shared/Scene.cs +++ b/Shared/Scene.cs @@ -102,7 +102,8 @@ namespace SemiColinGames { Vector2 position = new Vector2((camera.Width - size.X) / 2, (camera.Height - size.Y) / 2); spriteBatch.Begin( - SpriteSortMode.Deferred, null, SamplerState.LinearWrap, null, null, null, null); + SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, null); + for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { if (i == 0 && j == 0) { @@ -112,6 +113,7 @@ namespace SemiColinGames { spriteBatch.DrawString(Textures.BannerFont, text, stencilPos, Color.Black); } } + spriteBatch.DrawString(Textures.BannerFont, text, position, Color.White); spriteBatch.End(); }