set font to be PointClamped
GitOrigin-RevId: 6f21d2f11df5ba30061ca2994988f5bbd5d38b1d
This commit is contained in:
parent
c2fa12db9b
commit
830fc1ee9a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user