comparison tools/lib64gfx.c @ 1731:474055f25ab0

Move dmDefaultC64Palette back to lib64gfx.c
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 08 Jun 2018 22:07:05 +0300
parents 881a3fc421d8
children 07111a60cd4e
comparison
equal deleted inserted replaced
1730:881a3fc421d8 1731:474055f25ab0
8 */ 8 */
9 #include "lib64gfx.h" 9 #include "lib64gfx.h"
10 10
11 #define BUF_SIZE_INITIAL (16*1024) 11 #define BUF_SIZE_INITIAL (16*1024)
12 #define BUF_SIZE_GROW (4*1024) 12 #define BUF_SIZE_GROW (4*1024)
13
14
15 // Based on Pepto's palette, stolen from VICE
16 DMColor dmDefaultC64Palette[C64_NCOLORS] =
17 {
18 { 0x00, 0x00, 0x00, 0xff },
19 { 0xFF, 0xFF, 0xFF, 0xff },
20 { 0x68, 0x37, 0x2B, 0xff },
21 { 0x70, 0xA4, 0xB2, 0xff },
22 { 0x6F, 0x3D, 0x86, 0xff },
23 { 0x58, 0x8D, 0x43, 0xff },
24 { 0x35, 0x28, 0x79, 0xff },
25 { 0xB8, 0xC7, 0x6F, 0xff },
26 { 0x6F, 0x4F, 0x25, 0xff },
27 { 0x43, 0x39, 0x00, 0xff },
28 { 0x9A, 0x67, 0x59, 0xff },
29 { 0x44, 0x44, 0x44, 0xff },
30 { 0x6C, 0x6C, 0x6C, 0xff },
31 { 0x9A, 0xD2, 0x84, 0xff },
32 { 0x6C, 0x5E, 0xB5, 0xff },
33 { 0x95, 0x95, 0x95, 0xff },
34 };
13 35
14 36
15 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng) 37 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng)
16 { 38 {
17 snprintf(buf, len, 39 snprintf(buf, len,