diff tools/64vw.c @ 2238:5db6e0b63b35

Change again how the interlace type information is stored. Now store it in DMC64Image::extraInfo[] where it actually makes sense. Also add index for FLI type.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 06:43:36 +0300
parents 57ccd949093f
children 65a2c2e99c81
line wrap: on
line diff
--- a/tools/64vw.c	Sat Jun 15 06:26:07 2019 +0300
+++ b/tools/64vw.c	Sat Jun 15 06:43:36 2019 +0300
@@ -245,7 +245,9 @@
     bmap.width    = surf->w;
     bmap.height   = surf->h;
 
-    mixedPalette  = (cimage->fmt->type & D64_FMT_ILACE) && cimage->laceType == D64_ILACE_COLOR;
+    mixedPalette  = (cimage->fmt->type & D64_FMT_ILACE) &&
+        cimage->extraInfo[D64_EI_ILACE_TYPE] == D64_ILACE_COLOR;
+
     if ((res = dmC64SetImagePalette(&bmap, spec, mixedPalette)) != DMERR_OK)
     {
         dmErrorMsg("Could not create copy of palette.\n");