From ed66911489b099c791db6cc36ede0cfd4527da50 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sun, 19 Feb 2023 00:00:49 +0100 Subject: [PATCH] Tweaked cursor size --- Capy64/Runtime/Libraries/Term.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Capy64/Runtime/Libraries/Term.cs b/Capy64/Runtime/Libraries/Term.cs index cf44fa8..4ee77f7 100644 --- a/Capy64/Runtime/Libraries/Term.cs +++ b/Capy64/Runtime/Libraries/Term.cs @@ -61,8 +61,8 @@ internal class Term : IComponent ForegroundColor = Color.White; BackgroundColor = Color.Black; - cursorTexture = new(_game.Game.GraphicsDevice, 1, CharHeight); - var textureData = new Color[CharHeight]; + cursorTexture = new(_game.Game.GraphicsDevice, 1, CharHeight - 3); + var textureData = new Color[CharHeight - 3]; Array.Fill(textureData, Color.White); cursorTexture.SetData(textureData); @@ -305,7 +305,7 @@ internal class Term : IComponent if (cursorState) { var realpos = ToRealPos(CursorPosition - Vector2.One); - var charpos = (realpos * _game.Scale) + CharOffset; + var charpos = (realpos * _game.Scale) + (CharOffset + new Vector2(0, 2)) * _game.Scale; _game.Game.SpriteBatch.Draw(cursorTexture, charpos, null, ForegroundColor, 0f, Vector2.Zero, _game.Scale, SpriteEffects.None, 0); } }