From: Alan Cox Date: Tue, 16 Dec 2014 18:32:40 +0000 (+0000) Subject: font8x8: Shrink font, compensate for base change X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7d3eaa87a142188bd01fa8927aa47c810f4529b8;p=FUZIX.git font8x8: Shrink font, compensate for base change It's dumb having the small font 128 symbols long when the first 32 are weird stuff. Make it 96, and shift by 32 chars when printing. Saves us 256 bytes --- diff --git a/Kernel/font8x8.c b/Kernel/font8x8.c index c64d97f2..b769bc06 100644 --- a/Kernel/font8x8.c +++ b/Kernel/font8x8.c @@ -7,13 +7,13 @@ */ #ifdef CONFIG_FONT8X8SMALL -#define FONTDATAMAX 1024 +#define FONTDATAMAX 768 #else #define FONTDATAMAX 2048 #endif const unsigned char fontdata_8x8[FONTDATAMAX] = { - +#ifndef CONFIG_FONT8X8SMALL /* 0 0x00 '^@' */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ @@ -333,7 +333,7 @@ const unsigned char fontdata_8x8[FONTDATAMAX] = { 0x18, /* 00011000 */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ - +#endif /* 32 0x20 ' ' */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ diff --git a/Kernel/platform-zx128/zxvideo.s b/Kernel/platform-zx128/zxvideo.s index 23bbc847..a59da817 100644 --- a/Kernel/platform-zx128/zxvideo.s +++ b/Kernel/platform-zx128/zxvideo.s @@ -54,7 +54,7 @@ _plot_char: rl b ld c, a - ld hl, #_fontdata_8x8 + ld hl, #_fontdata_8x8 - 256 add hl, bc ; hl points to first byte of char data ; printing