diff options
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/font.bin | bin | 0 -> 2048 bytes | |||
-rw-r--r-- | src/graphics/font.h.bin | 178 | ||||
-rw-r--r-- | src/graphics/font.psf | bin | 2080 -> 0 bytes | |||
-rw-r--r-- | src/graphics/font.sfn | bin | 8283 -> 0 bytes | |||
-rw-r--r-- | src/graphics/glyphs.h | 1301 | ||||
-rw-r--r-- | src/graphics/glyphs.old | 1301 | ||||
-rw-r--r-- | src/graphics/lfb.c | 29 |
7 files changed, 1497 insertions, 1312 deletions
diff --git a/src/graphics/font.bin b/src/graphics/font.bin Binary files differnew file mode 100644 index 0000000..0a859d0 --- /dev/null +++ b/src/graphics/font.bin diff --git a/src/graphics/font.h.bin b/src/graphics/font.h.bin new file mode 100644 index 0000000..f883cda --- /dev/null +++ b/src/graphics/font.h.bin @@ -0,0 +1,178 @@ +enum { + GLYPH_X = 8, + GLYPH_Y = 16, +}; +unsigned char glyphs[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x08, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14, 0x14, 0x14, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x48, + 0x68, 0xfe, 0x24, 0x24, 0x7f, 0x14, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x10, 0x7c, 0x92, 0x12, 0x1c, 0x70, 0x90, 0x92, 0x7c, + 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x09, 0x09, 0x46, 0x38, + 0x66, 0x90, 0x90, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, + 0x04, 0x04, 0x0c, 0x92, 0xb2, 0xa2, 0x46, 0xbc, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x10, 0x08, 0x08, 0x08, 0x08, + 0x08, 0x08, 0x10, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x08, + 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x08, 0x08, 0x0c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x10, 0x92, 0x7c, 0x38, 0xd6, 0x10, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x7f, + 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x08, 0x04, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, + 0x20, 0x20, 0x10, 0x10, 0x18, 0x08, 0x08, 0x04, 0x04, 0x02, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x38, 0x44, 0x82, 0x82, 0x92, 0x82, 0x82, 0x44, 0x38, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x10, 0x10, 0x10, 0x10, + 0x10, 0x10, 0x10, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, + 0xc2, 0x80, 0x80, 0x40, 0x30, 0x18, 0x04, 0xfe, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x7c, 0x82, 0x80, 0xc0, 0x38, 0xc0, 0x80, 0xc2, 0x7c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x50, 0x58, 0x48, 0x44, + 0x42, 0xfe, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, + 0x02, 0x02, 0x3e, 0xc0, 0x80, 0x80, 0xc2, 0x3c, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x78, 0x84, 0x02, 0x7a, 0xc6, 0x82, 0x82, 0xc4, 0x78, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x40, 0x40, 0x20, 0x20, + 0x10, 0x18, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, + 0x82, 0x82, 0x82, 0x7c, 0x82, 0x82, 0x86, 0x7c, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x3c, 0x46, 0x82, 0x82, 0xc6, 0xbc, 0x80, 0x42, 0x3c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, + 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x08, 0x04, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x70, 0x0e, 0x0e, 0x70, 0x80, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, + 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x02, 0x1c, 0xe0, 0xe0, 0x1c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x1c, 0x22, 0x20, 0x10, 0x08, 0x08, 0x00, 0x08, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0xcc, 0x84, 0xe2, 0x92, + 0x92, 0x92, 0xe2, 0x04, 0x0c, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, + 0x28, 0x28, 0x28, 0x44, 0x44, 0x7c, 0xc6, 0x82, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x7e, 0x82, 0x82, 0x82, 0x7e, 0x82, 0x82, 0x82, 0x7e, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x84, 0x02, 0x02, 0x02, + 0x02, 0x02, 0x84, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, + 0x42, 0x82, 0x82, 0x82, 0x82, 0x82, 0x42, 0x3e, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0xfe, 0x02, 0x02, 0x02, 0xfe, 0x02, 0x02, 0x02, 0xfe, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x02, 0x02, 0x02, 0xfe, + 0x02, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, + 0x84, 0x02, 0x02, 0xc2, 0x82, 0x82, 0x84, 0x78, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x82, 0x82, 0x82, 0x82, 0xfe, 0x82, 0x82, 0x82, 0x82, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x08, 0x08, 0x08, 0x08, + 0x08, 0x08, 0x08, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, 0x1c, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x42, 0x22, 0x12, 0x0a, 0x0e, 0x12, 0x22, 0x22, 0x42, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, + 0x02, 0x02, 0x02, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, + 0xc6, 0xaa, 0xaa, 0xaa, 0x92, 0x82, 0x82, 0x82, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x86, 0x86, 0x8a, 0x8a, 0x92, 0xa2, 0xa2, 0xc2, 0xc2, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x82, 0x82, 0x82, + 0x82, 0x82, 0x44, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, + 0xc2, 0x82, 0x82, 0xc2, 0x7e, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x38, 0x44, 0x82, 0x82, 0x82, 0x82, 0x82, 0x44, 0x78, + 0x60, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xc2, 0x82, 0x82, 0x7e, + 0x42, 0x82, 0x82, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, + 0x86, 0x02, 0x06, 0x7c, 0xc0, 0x80, 0xc2, 0x7d, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x7f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x82, 0x82, 0x82, 0x82, + 0x82, 0x82, 0x82, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, + 0xc6, 0x44, 0x44, 0x44, 0x28, 0x28, 0x28, 0x10, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x81, 0x81, 0x81, 0x5a, 0x5a, 0x5a, 0x66, 0x66, 0x66, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x44, 0x28, 0x38, 0x10, + 0x28, 0x6c, 0x44, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, + 0x22, 0x14, 0x14, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0xfe, 0xc0, 0x60, 0x20, 0x10, 0x08, 0x0c, 0x06, 0xfe, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, + 0x08, 0x08, 0x08, 0x08, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, + 0x04, 0x04, 0x08, 0x08, 0x18, 0x10, 0x10, 0x20, 0x20, 0x40, 0x00, 0x00, + 0x00, 0x1c, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, + 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x14, 0x22, 0x63, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, + 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x40, + 0x7c, 0x42, 0x62, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, + 0x02, 0x3e, 0x66, 0x42, 0x42, 0x42, 0x66, 0x3e, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44, 0x02, 0x02, 0x02, 0x44, 0x38, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x7c, 0x66, 0x42, + 0x42, 0x42, 0x66, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x3c, 0x66, 0x42, 0x7e, 0x02, 0x46, 0x3c, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x30, 0x08, 0x08, 0x08, 0x3e, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x66, 0x42, + 0x42, 0x42, 0x66, 0x5c, 0x40, 0x44, 0x38, 0x00, 0x00, 0x02, 0x02, 0x02, + 0x02, 0x3a, 0x46, 0x42, 0x42, 0x42, 0x42, 0x42, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x08, 0x00, 0x00, 0x00, 0x0e, 0x08, 0x08, 0x08, 0x08, 0x08, 0x3e, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1c, 0x10, 0x10, + 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x0e, 0x00, 0x00, 0x02, 0x02, 0x02, + 0x02, 0x22, 0x12, 0x0a, 0x0e, 0x12, 0x22, 0x42, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x0e, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x70, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x92, 0x92, + 0x92, 0x92, 0x92, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x3a, 0x46, 0x42, 0x42, 0x42, 0x42, 0x42, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66, 0x42, 0x42, 0x42, 0x66, 0x3c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x66, 0x42, + 0x42, 0x42, 0x66, 0x3e, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x7c, 0x66, 0x42, 0x42, 0x42, 0x66, 0x5c, 0x40, 0x40, 0x40, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x4c, 0x04, 0x04, 0x04, 0x04, 0x04, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x42, 0x02, + 0x3c, 0x40, 0x42, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, + 0x08, 0x7e, 0x08, 0x08, 0x08, 0x08, 0x08, 0x70, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x42, 0x42, 0x42, 0x42, 0x62, 0x5c, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x66, 0x24, + 0x24, 0x3c, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x81, 0x81, 0x5a, 0x5a, 0x5a, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x24, 0x18, 0x18, 0x18, 0x24, 0x66, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x44, 0x24, + 0x24, 0x28, 0x18, 0x10, 0x10, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x7e, 0x40, 0x20, 0x18, 0x04, 0x02, 0x7e, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x38, 0x08, 0x08, 0x08, 0x08, 0x06, 0x08, 0x08, 0x08, 0x08, 0x08, + 0x30, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, + 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x0e, 0x08, 0x08, + 0x08, 0x08, 0x30, 0x08, 0x08, 0x08, 0x08, 0x08, 0x06, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9c, 0x62, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff +}; +unsigned int src_graphics_font_bin_len = 2048; diff --git a/src/graphics/font.psf b/src/graphics/font.psf Binary files differdeleted file mode 100644 index 3e67693..0000000 --- a/src/graphics/font.psf +++ /dev/null diff --git a/src/graphics/font.sfn b/src/graphics/font.sfn Binary files differdeleted file mode 100644 index 50a7633..0000000 --- a/src/graphics/font.sfn +++ /dev/null diff --git a/src/graphics/glyphs.h b/src/graphics/glyphs.h index 6fc8452..668508e 100644 --- a/src/graphics/glyphs.h +++ b/src/graphics/glyphs.h @@ -1,1304 +1,7 @@ #ifndef GRAPHICS_GLYPHS_H #define GRAPHICS_GLYPHS_H -const char glyphs[] = { - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - 0b10000001, - - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b10000001, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b10000001, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00101000, - 0b00101000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00010010, - 0b01111110, - 0b00100100, - 0b01111110, - 0b01001000, - 0b01001000, - 0b00000000, - - 0b00010000, - 0b01111100, - 0b10010000, - 0b01111100, - 0b00010010, - 0b01111100, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b01100010, - 0b01100100, - 0b00001000, - 0b00010000, - 0b00100110, - 0b01000110, - 0b00000000, - - 0b00000000, - 0b00111000, - 0b01000100, - 0b00111000, - 0b01010100, - 0b01001000, - 0b00110100, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00010000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00100000, - 0b00100000, - 0b00100000, - 0b00100000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00001000, - 0b00001000, - 0b00001000, - 0b00001000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00101000, - 0b00010000, - 0b00101000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00010000, - 0b00111000, - 0b00010000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00010000, - 0b00100000, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00111100, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00000010, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00100000, - 0b01000000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000110, - 0b01001010, - 0b01010010, - 0b01100010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00110000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b00000010, - 0b00111100, - 0b01000000, - 0b01000000, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b00000010, - 0b00011110, - 0b00000010, - 0b00000010, - 0b00111110, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b00111110, - 0b00000010, - 0b00000010, - 0b00000010, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b00111100, - 0b00000010, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b00000010, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00100000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b00111100, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b00111110, - 0b00000010, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00001000, - 0b00000000, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00001000, - 0b00000100, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00111100, - 0b00000000, - 0b00111100, - 0b00000000, - 0b00000000, - 0b00000000, - - - 0b00000000, - 0b00000000, - 0b00100000, - 0b00010000, - 0b00001000, - 0b00010000, - 0b00100000, - 0b00000000, - - 0b00000000, - 0b00111000, - 0b01000100, - 0b00001000, - 0b00010000, - 0b00000000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00111000, - 0b01000100, - 0b01000100, - 0b01011000, - 0b01000100, - 0b00111000, - 0b00000000, - - 0b00000000, - 0b00011000, - 0b00100100, - 0b01000010, - 0b01111110, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00111110, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01000000, - 0b01001110, - 0b01000100, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01111110, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01110000, - 0b00000000, - - 0b00000000, - 0b01001000, - 0b01010000, - 0b01100000, - 0b01010000, - 0b01001000, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01100110, - 0b01100110, - 0b01011010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01100010, - 0b01100010, - 0b01010010, - 0b01001010, - 0b01000110, - 0b01000110, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b01000000, - 0b01000000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b01000010, - 0b01010010, - 0b01001010, - 0b00111100, - 0b00000010, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b01011000, - 0b01000110, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01111000, - 0b00011110, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00100100, - 0b00100100, - 0b00011000, - 0b00000000, - - 0b00000000, - 0b01000100, - 0b01000100, - 0b01000100, - 0b01010100, - 0b01101100, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b01000100, - 0b00101000, - 0b00010000, - 0b00101000, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b01000100, - 0b00101000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00100000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b00011100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00011100, - 0b00000000, - - 0b00000000, - 0b01000000, - 0b00100000, - 0b00010000, - 0b00001000, - 0b00000100, - 0b00000010, - 0b00000000, - - 0b00000000, - 0b00111000, - 0b00001000, - 0b00001000, - 0b00001000, - 0b00001000, - 0b00111000, - 0b00000000, - - 0b00000000, - 0b00011000, - 0b00100100, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00001000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b00000000, - 0b00011000, - 0b00100100, - 0b01000010, - 0b01111110, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00111110, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01000000, - 0b01001110, - 0b01000100, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01111110, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01110000, - 0b00000000, - - 0b00000000, - 0b01001000, - 0b01010000, - 0b01100000, - 0b01010000, - 0b01001000, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01100110, - 0b01100110, - 0b01011010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01100010, - 0b01100010, - 0b01010010, - 0b01001010, - 0b01000110, - 0b01000110, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b01000000, - 0b01000000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b01000010, - 0b01010010, - 0b01001010, - 0b00111100, - 0b00000010, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b01011000, - 0b01000110, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01111000, - 0b00011110, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b01000010, - 0b00100100, - 0b00100100, - 0b00011000, - 0b00000000, - - 0b00000000, - 0b01000100, - 0b01000100, - 0b01000100, - 0b01010100, - 0b01101100, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b01000100, - 0b00101000, - 0b00010000, - 0b00101000, - 0b01000100, - 0b00000000, - - 0b00000000, - 0b01000100, - 0b00101000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00100000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b00001100, - 0b00010000, - 0b00110000, - 0b00110000, - 0b00010000, - 0b00001100, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b00000000, - - 0b00000000, - 0b00110000, - 0b00001000, - 0b00001100, - 0b00001100, - 0b00001000, - 0b00110000, - 0b00000000, - - 0b00000000, - 0b00000000, - 0b00000000, - 0b00110010, - 0b01001100, - 0b00000000, - 0b00000000, - 0b00000000, - - 0b11111111, - 0b10000001, - 0b10111001, - 0b10100101, - 0b10100101, - 0b10111001, - 0b10000001, - 0b11111111, -}; - -const char glyphs_byte[] = { - 0b00000000, - 0b00111100, - 0b01000110, - 0b01001010, - 0b01010010, - 0b01100010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00010000, - 0b00110000, - 0b00010000, - 0b00010000, - 0b00010000, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b00000010, - 0b00111100, - 0b01000000, - 0b01000000, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b00000010, - 0b00011110, - 0b00000010, - 0b00000010, - 0b00111110, - 0b00000000, - - 0b00000000, - 0b01000010, - 0b01000010, - 0b00111110, - 0b00000010, - 0b00000010, - 0b00000010, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b00111100, - 0b00000010, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b00000010, - 0b00000100, - 0b00001000, - 0b00010000, - 0b00100000, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b00111100, - 0b01000010, - 0b01000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00111100, - 0b01000010, - 0b00111110, - 0b00000010, - 0b00000010, - 0b00111100, - 0b00000000, - - 0b00000000, - 0b00011000, - 0b00100100, - 0b01000010, - 0b01111110, - 0b01000010, - 0b01000010, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b00111110, - 0b01000000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00111110, - 0b00000000, - - 0b00000000, - 0b01111100, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01000010, - 0b01111100, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01111110, - 0b00000000, - - 0b00000000, - 0b01111110, - 0b01000000, - 0b01111000, - 0b01000000, - 0b01000000, - 0b01000000, - 0b00000000, -}; +//extern char* glyphs; +#include "font.h.bin" #endif diff --git a/src/graphics/glyphs.old b/src/graphics/glyphs.old new file mode 100644 index 0000000..6377747 --- /dev/null +++ b/src/graphics/glyphs.old @@ -0,0 +1,1301 @@ + +const char glyphs[] = { + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + 0b10000001, + + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b10000001, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b10000001, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00101000, + 0b00101000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00010010, + 0b01111110, + 0b00100100, + 0b01111110, + 0b01001000, + 0b01001000, + 0b00000000, + + 0b00010000, + 0b01111100, + 0b10010000, + 0b01111100, + 0b00010010, + 0b01111100, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b01100010, + 0b01100100, + 0b00001000, + 0b00010000, + 0b00100110, + 0b01000110, + 0b00000000, + + 0b00000000, + 0b00111000, + 0b01000100, + 0b00111000, + 0b01010100, + 0b01001000, + 0b00110100, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00010000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00100000, + 0b00100000, + 0b00100000, + 0b00100000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00001000, + 0b00001000, + 0b00001000, + 0b00001000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00101000, + 0b00010000, + 0b00101000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00010000, + 0b00111000, + 0b00010000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00010000, + 0b00100000, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00111100, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00000010, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00100000, + 0b01000000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000110, + 0b01001010, + 0b01010010, + 0b01100010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00110000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b00000010, + 0b00111100, + 0b01000000, + 0b01000000, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b00000010, + 0b00011110, + 0b00000010, + 0b00000010, + 0b00111110, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b00111110, + 0b00000010, + 0b00000010, + 0b00000010, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b00111100, + 0b00000010, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b00000010, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00100000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b00111100, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b00111110, + 0b00000010, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00001000, + 0b00000000, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00001000, + 0b00000100, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00111100, + 0b00000000, + 0b00111100, + 0b00000000, + 0b00000000, + 0b00000000, + + + 0b00000000, + 0b00000000, + 0b00100000, + 0b00010000, + 0b00001000, + 0b00010000, + 0b00100000, + 0b00000000, + + 0b00000000, + 0b00111000, + 0b01000100, + 0b00001000, + 0b00010000, + 0b00000000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00111000, + 0b01000100, + 0b01000100, + 0b01011000, + 0b01000100, + 0b00111000, + 0b00000000, + + 0b00000000, + 0b00011000, + 0b00100100, + 0b01000010, + 0b01111110, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00111110, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01000000, + 0b01001110, + 0b01000100, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01111110, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01110000, + 0b00000000, + + 0b00000000, + 0b01001000, + 0b01010000, + 0b01100000, + 0b01010000, + 0b01001000, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01100110, + 0b01100110, + 0b01011010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01100010, + 0b01100010, + 0b01010010, + 0b01001010, + 0b01000110, + 0b01000110, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b01000000, + 0b01000000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b01000010, + 0b01010010, + 0b01001010, + 0b00111100, + 0b00000010, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b01011000, + 0b01000110, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01111000, + 0b00011110, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00100100, + 0b00100100, + 0b00011000, + 0b00000000, + + 0b00000000, + 0b01000100, + 0b01000100, + 0b01000100, + 0b01010100, + 0b01101100, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b01000100, + 0b00101000, + 0b00010000, + 0b00101000, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b01000100, + 0b00101000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00100000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b00011100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00011100, + 0b00000000, + + 0b00000000, + 0b01000000, + 0b00100000, + 0b00010000, + 0b00001000, + 0b00000100, + 0b00000010, + 0b00000000, + + 0b00000000, + 0b00111000, + 0b00001000, + 0b00001000, + 0b00001000, + 0b00001000, + 0b00111000, + 0b00000000, + + 0b00000000, + 0b00011000, + 0b00100100, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00001000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b00000000, + 0b00011000, + 0b00100100, + 0b01000010, + 0b01111110, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00111110, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01000000, + 0b01001110, + 0b01000100, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01111110, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01110000, + 0b00000000, + + 0b00000000, + 0b01001000, + 0b01010000, + 0b01100000, + 0b01010000, + 0b01001000, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01100110, + 0b01100110, + 0b01011010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01100010, + 0b01100010, + 0b01010010, + 0b01001010, + 0b01000110, + 0b01000110, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b01000000, + 0b01000000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b01000010, + 0b01010010, + 0b01001010, + 0b00111100, + 0b00000010, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b01011000, + 0b01000110, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01111000, + 0b00011110, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b01000010, + 0b00100100, + 0b00100100, + 0b00011000, + 0b00000000, + + 0b00000000, + 0b01000100, + 0b01000100, + 0b01000100, + 0b01010100, + 0b01101100, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b01000100, + 0b00101000, + 0b00010000, + 0b00101000, + 0b01000100, + 0b00000000, + + 0b00000000, + 0b01000100, + 0b00101000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00100000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b00001100, + 0b00010000, + 0b00110000, + 0b00110000, + 0b00010000, + 0b00001100, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b00000000, + + 0b00000000, + 0b00110000, + 0b00001000, + 0b00001100, + 0b00001100, + 0b00001000, + 0b00110000, + 0b00000000, + + 0b00000000, + 0b00000000, + 0b00000000, + 0b00110010, + 0b01001100, + 0b00000000, + 0b00000000, + 0b00000000, + + 0b11111111, + 0b10000001, + 0b10111001, + 0b10100101, + 0b10100101, + 0b10111001, + 0b10000001, + 0b11111111, +}; + +const char glyphs_byte[] = { + 0b00000000, + 0b00111100, + 0b01000110, + 0b01001010, + 0b01010010, + 0b01100010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00010000, + 0b00110000, + 0b00010000, + 0b00010000, + 0b00010000, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b00000010, + 0b00111100, + 0b01000000, + 0b01000000, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b00000010, + 0b00011110, + 0b00000010, + 0b00000010, + 0b00111110, + 0b00000000, + + 0b00000000, + 0b01000010, + 0b01000010, + 0b00111110, + 0b00000010, + 0b00000010, + 0b00000010, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b00111100, + 0b00000010, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b00000010, + 0b00000100, + 0b00001000, + 0b00010000, + 0b00100000, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b00111100, + 0b01000010, + 0b01000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00111100, + 0b01000010, + 0b00111110, + 0b00000010, + 0b00000010, + 0b00111100, + 0b00000000, + + 0b00000000, + 0b00011000, + 0b00100100, + 0b01000010, + 0b01111110, + 0b01000010, + 0b01000010, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b00111110, + 0b01000000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00111110, + 0b00000000, + + 0b00000000, + 0b01111100, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01000010, + 0b01111100, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01111110, + 0b00000000, + + 0b00000000, + 0b01111110, + 0b01000000, + 0b01111000, + 0b01000000, + 0b01000000, + 0b01000000, + 0b00000000, +}; + diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c index 5494dde..a693135 100644 --- a/src/graphics/lfb.c +++ b/src/graphics/lfb.c @@ -96,36 +96,39 @@ void lfb_showpicture() void draw_cbyte(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c) { unsigned int x, y; unsigned char* ptr = lfb; - ptr += (pitch*ly+lx*4)*8; - unsigned char ltr = letter & 0x7F; - for(y=0; y<8; y++) { - for(x=0; x<8; x++) { - if((1 << (7-x)) & glyphs_byte[y+8*(ltr)]) { + ptr += (pitch*ly*GLYPH_Y+lx*4*GLYPH_X); + unsigned char ltr = (letter & 0xF) + 0x30; + if (ltr > 0x39) { + ltr += 7; + } + for(y=0; y<GLYPH_Y; y++) { + for(x=0; x<GLYPH_X; x++) { + if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { *((unsigned int*)ptr) = isrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } else { *((unsigned int*)ptr) = 0x000000; } ptr += 4; } - ptr += pitch - 8*4; + ptr += pitch - GLYPH_X*4; } } void draw_cletter(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c) { unsigned int x, y; unsigned char* ptr = lfb; - ptr += (pitch*ly+lx*4)*8; + ptr += (pitch*ly*GLYPH_Y+lx*4*GLYPH_X); unsigned char ltr = letter & 0x7F; - for(y=0; y<8; y++) { - for(x=0; x<8; x++) { - if((1 << (7-x)) & glyphs[y+8*(ltr)]) { + for(y=0; y<GLYPH_Y; y++) { + for(x=0; x<GLYPH_X; x++) { + if((0b10000000 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { *((unsigned int*)ptr) = isrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } else { *((unsigned int*)ptr) = 0x000000; } ptr += 4; } - ptr += pitch - 8*4; + ptr += pitch - GLYPH_X*4; } } @@ -144,8 +147,8 @@ void draw_cstring(unsigned int lx, unsigned int ly, char* s, unsigned int c) { void draw_chex32(unsigned int lx, unsigned int ly, unsigned long val, unsigned int c) { unsigned int x = lx % GG_MAX_X, y = ly % GG_MAX_Y; - for(unsigned int i = 0; i < 8; i++) { - draw_cbyte(x++, y, 0xF & (val >> (7-i)*4), c); + for(unsigned int i = 0; i < GLYPH_X; i++) { + draw_cbyte(x++, y, 0xF & (val >> ((GLYPH_X-1)-i)*4), c); if (x > GG_MAX_X) { y += 1; x = 0; |