mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Tweaked cursor size
This commit is contained in:
parent
65cb15f6c8
commit
ed66911489
1 changed files with 3 additions and 3 deletions
|
@ -61,8 +61,8 @@ internal class Term : IComponent
|
||||||
ForegroundColor = Color.White;
|
ForegroundColor = Color.White;
|
||||||
BackgroundColor = Color.Black;
|
BackgroundColor = Color.Black;
|
||||||
|
|
||||||
cursorTexture = new(_game.Game.GraphicsDevice, 1, CharHeight);
|
cursorTexture = new(_game.Game.GraphicsDevice, 1, CharHeight - 3);
|
||||||
var textureData = new Color[CharHeight];
|
var textureData = new Color[CharHeight - 3];
|
||||||
Array.Fill(textureData, Color.White);
|
Array.Fill(textureData, Color.White);
|
||||||
cursorTexture.SetData(textureData);
|
cursorTexture.SetData(textureData);
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ internal class Term : IComponent
|
||||||
if (cursorState)
|
if (cursorState)
|
||||||
{
|
{
|
||||||
var realpos = ToRealPos(CursorPosition - Vector2.One);
|
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);
|
_game.Game.SpriteBatch.Draw(cursorTexture, charpos, null, ForegroundColor, 0f, Vector2.Zero, _game.Scale, SpriteEffects.None, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue