commit 73efe5386024dfdebf066fef6592cc89003fda5d
parent 90a9ade33f6002dc792962b412f77db8994dfd69
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 22 Sep 2020 23:19:01 +0200
Introduce the PCB_COLORS macro.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/config.h b/src/config.h
@@ -21,6 +21,8 @@
#define SUB 26
#define ESC 27
+#define PCB_COLORS 71
+
static const uint8_t ansi_palette_red[] = {
0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa,
0x55, 0xff, 0x55, 0xff, 0x55, 0xff, 0x55, 0xff
@@ -69,7 +71,7 @@ static const uint8_t vga_palette_blue[] = {
/* ADF color mapping array */
static const uint8_t adf_colors[16] = { 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63 };
-static const uint8_t pcb_colors[] = {
+static const uint8_t pcb_colors[PCB_COLORS] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,