From 4ebe017c1bb9f89d523963bcab014a0abf4c68dd Mon Sep 17 00:00:00 2001 From: xolatile Date: Mon, 2 Oct 2023 16:27:01 -0400 Subject: [PATCH] More stupid changes... --- xlesses.c | 4 ++-- xlesses.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xlesses.c b/xlesses.c index 967ebfe..c88e69a 100644 --- a/xlesses.c +++ b/xlesses.c @@ -10,7 +10,7 @@ #define XLESSES_SOURCE #include -#include + char * blesses_window_title = "xolatile"; int blesses_window_width = 640; int blesses_window_height = 480; @@ -177,7 +177,7 @@ void blesses_render_string (char * string, int x, int y, int foreground, int bac do { if (string [offset] == '\t') { - x += BLESSES_FONT_WIDTH * 3; + x += BLESSES_FONT_WIDTH * BLESSES_FONT_TABULATOR; } else if (string [offset] == '\n') { y += BLESSES_FONT_HEIGHT; x *= 0; diff --git a/xlesses.h b/xlesses.h index 68089db..d38b47a 100644 --- a/xlesses.h +++ b/xlesses.h @@ -10,7 +10,6 @@ #define XLESSES_HEADER #include -#include #include #include @@ -19,6 +18,8 @@ #define BLESSES_FONT_WIDTH (8) #define BLESSES_FONT_HEIGHT (8) +#define BLESSES_FONT_TABULATOR (4) + #define BLESSES_SIGNAL_COUNT (144) extern char * blesses_window_title;