comparison tools/lib64fmts.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 12504f179749
children 183d503b17a7
comparison
equal deleted inserted replaced
1730:881a3fc421d8 1731:474055f25ab0
6 * 6 *
7 * Please read file 'COPYING' for information on license and distribution. 7 * Please read file 'COPYING' for information on license and distribution.
8 */ 8 */
9 #include "lib64gfx.h" 9 #include "lib64gfx.h"
10 10
11
12 // Based on Pepto's palette, stolen from VICE
13 DMColor dmDefaultC64Palette[C64_NCOLORS] =
14 {
15 { 0x00, 0x00, 0x00, 0xff },
16 { 0xFF, 0xFF, 0xFF, 0xff },
17 { 0x68, 0x37, 0x2B, 0xff },
18 { 0x70, 0xA4, 0xB2, 0xff },
19 { 0x6F, 0x3D, 0x86, 0xff },
20 { 0x58, 0x8D, 0x43, 0xff },
21 { 0x35, 0x28, 0x79, 0xff },
22 { 0xB8, 0xC7, 0x6F, 0xff },
23 { 0x6F, 0x4F, 0x25, 0xff },
24 { 0x43, 0x39, 0x00, 0xff },
25 { 0x9A, 0x67, 0x59, 0xff },
26 { 0x44, 0x44, 0x44, 0xff },
27 { 0x6C, 0x6C, 0x6C, 0xff },
28 { 0x9A, 0xD2, 0x84, 0xff },
29 { 0x6C, 0x5E, 0xB5, 0xff },
30 { 0x95, 0x95, 0x95, 0xff },
31 };
32 11
33 12
34 static int fmtProbeKoalaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) 13 static int fmtProbeKoalaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt)
35 { 14 {
36 // Attempt to prevent misprobes of unpacked Koala and Run Paint 15 // Attempt to prevent misprobes of unpacked Koala and Run Paint