commit c6b20431009109a0049c28565583f93519a10fb2
parent ca583e3a474425802d73790e0ed62254ff7eb198
Author: Frederic Cambus <fred@statdns.com>
Date: Fri, 19 Jun 2020 23:26:53 +0200
Move ADF color mapping array to config.h.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/config.h b/src/config.h
@@ -60,6 +60,8 @@ static const uint8_t vga_palette_blue[] = {
0x55, 0xff, 0x55, 0xff, 0x55, 0xff, 0x55, 0xff
};
+/* 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[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
diff --git a/src/loaders/artworx.c b/src/loaders/artworx.c
@@ -14,6 +14,7 @@
#include <stddef.h>
#include <stdint.h>
#include "ansilove.h"
+#include "config.h"
#include "drawchar.h"
#include "output.h"
@@ -44,9 +45,6 @@ ansilove_artworx(struct ansilove_ctx *ctx, struct ansilove_options *options)
return -1;
}
- /* ADF color palette array */
- uint32_t adf_colors[16] = { 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63 };
-
size_t index, loop;
/* process ADF palette */