From b12eac4bed1e93c794a0688e62dc2ad1dd885089 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sat, 4 Feb 2023 11:43:24 +0100 Subject: [PATCH] Move chars closer to close gaps --- Capy64/Runtime/Libraries/Term.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Capy64/Runtime/Libraries/Term.cs b/Capy64/Runtime/Libraries/Term.cs index 17a58b0..25619eb 100644 --- a/Capy64/Runtime/Libraries/Term.cs +++ b/Capy64/Runtime/Libraries/Term.cs @@ -20,8 +20,8 @@ internal class Term : IPlugin public Color Background; } - public const int CharWidth = 7; - public const int CharHeight = 13; + public const int CharWidth = 6; + public const int CharHeight = 12; public const int CursorDelay = 30; @@ -29,7 +29,7 @@ internal class Term : IPlugin public static int Height { get; private set; } = 23; public static int RealWidth => CharWidth * Width; public static int RealHeight => CharHeight * Height; - public static Vector2 CharOffset => new(1, 0); + public static Vector2 CharOffset => new(0, -1); public static Vector2 CursorPosition => _cursorPosition + Vector2.One; private static Vector2 _cursorPosition { get; set; } public static Color ForegroundColor { get; set; } @@ -189,6 +189,7 @@ internal class Term : IPlugin var realpos = ToRealPos(pos); var charpos = realpos + CharOffset; _game.Drawing.DrawRectangle(realpos, new(CharWidth, CharHeight), bg, Math.Min(CharWidth, CharHeight)); + //_game.Drawing.DrawRectangle(realpos, new(CharWidth, CharHeight), Color.Red, 1); _game.Drawing.DrawString(charpos, ch.ToString(), fg); if (!save)