comparison tools/lib64util.c @ 2380:89cb93184175

Move dmC64DefaultPalettes from lib64gfx to lib64util.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jan 2020 13:08:53 +0200
parents f35ee6f8d994
children 43e39d9ec42f
comparison
equal deleted inserted replaced
2379:7011e11dad9a 2380:89cb93184175
7 */ 7 */
8 #include "lib64util.h" 8 #include "lib64util.h"
9 #include "dmfile.h" 9 #include "dmfile.h"
10 10
11 11
12 //
13 // Some common C64 palettes
14 //
15 DMC64Palette dmC64DefaultPalettes[] =
16 {
17 {
18 "pepto",
19 "Pepto's classic (default)",
20 {
21 { 0x00, 0x00, 0x00, 0xff },
22 { 0xFF, 0xFF, 0xFF, 0xff },
23 { 0x68, 0x37, 0x2B, 0xff },
24 { 0x70, 0xA4, 0xB2, 0xff },
25 { 0x6F, 0x3D, 0x86, 0xff },
26 { 0x58, 0x8D, 0x43, 0xff },
27 { 0x35, 0x28, 0x79, 0xff },
28 { 0xB8, 0xC7, 0x6F, 0xff },
29 { 0x6F, 0x4F, 0x25, 0xff },
30 { 0x43, 0x39, 0x00, 0xff },
31 { 0x9A, 0x67, 0x59, 0xff },
32 { 0x44, 0x44, 0x44, 0xff },
33 { 0x6C, 0x6C, 0x6C, 0xff },
34 { 0x9A, 0xD2, 0x84, 0xff },
35 { 0x6C, 0x5E, 0xB5, 0xff },
36 { 0x95, 0x95, 0x95, 0xff },
37 },
38 },
39 {
40 "colodore",
41 "Colodore",
42 {
43 { 0x00, 0x00, 0x00, 0xff },
44 { 0xff, 0xff, 0xff, 0xff },
45 { 0x96, 0x28, 0x2e, 0xff },
46 { 0x5b, 0xd6, 0xce, 0xff },
47 { 0x9f, 0x2d, 0xad, 0xff },
48 { 0x41, 0xb9, 0x36, 0xff },
49 { 0x27, 0x24, 0xc4, 0xff },
50 { 0xef, 0xf3, 0x47, 0xff },
51 { 0x9f, 0x48, 0x15, 0xff },
52 { 0x5e, 0x35, 0x00, 0xff },
53 { 0xda, 0x5f, 0x66, 0xff },
54 { 0x47, 0x47, 0x47, 0xff },
55 { 0x78, 0x78, 0x78, 0xff },
56 { 0x91, 0xff, 0x84, 0xff },
57 { 0x68, 0x64, 0xff, 0xff },
58 { 0xae, 0xae, 0xae, 0xff },
59 },
60 },
61 {
62 "vice3",
63 "VICE 3.3",
64 {
65 { 0x00, 0x00, 0x00, 0xff },
66 { 0xfd, 0xfe, 0xfc, 0xff },
67 { 0xbe, 0x1a, 0x24, 0xff },
68 { 0x30, 0xe6, 0xc6, 0xff },
69 { 0xb4, 0x1a, 0xe2, 0xff },
70 { 0x1f, 0xd2, 0x1e, 0xff },
71 { 0x21, 0x1b, 0xae, 0xff },
72 { 0xdf, 0xf6, 0x0a, 0xff },
73 { 0xb8, 0x41, 0x04, 0xff },
74 { 0x6a, 0x33, 0x04, 0xff },
75 { 0xfe, 0x4a, 0x57, 0xff },
76 { 0x42, 0x45, 0x40, 0xff },
77 { 0x70, 0x74, 0x6f, 0xff },
78 { 0x59, 0xfe, 0x59, 0xff },
79 { 0x5f, 0x53, 0xfe, 0xff },
80 { 0xa4, 0xa7, 0xa2, 0xff },
81 },
82 },
83 };
84
85 const int ndmC64DefaultPalettes = sizeof(dmC64DefaultPalettes) / sizeof(dmC64DefaultPalettes[0]);
86
87
12 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng) 88 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng)
13 { 89 {
14 static const char *fmtModesShort[] = { "*", "HiR", "MC", "ECM" }; 90 static const char *fmtModesShort[] = { "*", "HiR", "MC", "ECM" };
15 static const char *fmtModesLong[] = { "*", "Hires", "Multi-color", "Extended Color Mode" }; 91 static const char *fmtModesLong[] = { "*", "Hires", "Multi-color", "Extended Color Mode" };
16 const char *fmtStr; 92 const char *fmtStr;