commit 2b50e81e1ce63c08a4f2da015a586f1b8338802c
parent ad7b8710e28fd26b697c09eafd4a6dfd2d204c18
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 29 Apr 2019 11:10:01 +0200
Rename the 'binary_palette' array to 'vga_palette'.
Diffstat:
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/config.h b/src/config.h
@@ -29,7 +29,7 @@ static const uint8_t workbench_palette[] = {
0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff
};
-static const uint8_t binary_palette[] = {
+static const uint8_t vga_palette[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0x00, 0xaa, 0x00, 0x00, 0xaa, 0xaa,
0xaa, 0x00, 0x00, 0xaa, 0x00, 0xaa, 0xaa, 0x55, 0x00, 0xaa, 0xaa, 0xaa,
0x55, 0x55, 0x55, 0x55, 0x55, 0xff, 0x55, 0xff, 0x55, 0x55, 0xff, 0xff,
diff --git a/src/loaders/binary.c b/src/loaders/binary.c
@@ -56,9 +56,8 @@ ansilove_binary(struct ansilove_ctx *ctx, struct ansilove_options *options)
uint32_t colors[16];
for (int i = 0; i < 16; i++) {
- colors[i] = gdImageColorAllocate(canvas, binary_palette[i*3],
- binary_palette[i*3+1],
- binary_palette[i*3+2]);
+ colors[i] = gdImageColorAllocate(canvas, vga_palette[i*3],
+ vga_palette[i*3+1], vga_palette[i*3+2]);
}
/* process binary */
diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c
@@ -83,8 +83,8 @@ ansilove_xbin(struct ansilove_ctx *ctx, struct ansilove_options *options)
} else {
for (int i = 0; i < 16; i++) {
colors[i] = gdImageColorAllocate(canvas,
- binary_palette[i*3], binary_palette[i*3+1],
- binary_palette[i*3+2]);
+ vga_palette[i*3], vga_palette[i*3+1],
+ vga_palette[i*3+2]);
}
}