diff tools/lib64gfx.h @ 2175:58fab91830d5

Change default C64 palette system a bit, add two more palettes. These are not yet selectable. TBD.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 12 Jun 2019 16:38:39 +0300
parents 487157934904
children 8e6713705786
line wrap: on
line diff
--- a/tools/lib64gfx.h	Tue Jun 11 22:23:36 2019 +0300
+++ b/tools/lib64gfx.h	Wed Jun 12 16:38:39 2019 +0300
@@ -158,6 +158,13 @@
 
 typedef struct
 {
+    char *name;
+    DMColor colors[D64_NCOLORS];
+} DMC64Palette;
+
+
+typedef struct
+{
     BOOL multicolor, xexpand, yexpand;
     int color, xc, yc;
     Uint8 data[D64_SPR_HEIGHT_UT][D64_SPR_WIDTH_UT];
@@ -316,7 +323,8 @@
 //
 // Global variables
 //
-extern DMColor           dmDefaultC64Palette[D64_NCOLORS];
+extern DMC64Palette      dmC64DefaultPalettes[];
+extern const int         ndmC64DefaultPalettes;
 extern DMC64ImageFormat  dmC64ImageFormats[];
 extern const int         ndmC64ImageFormats;