comparison 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
comparison
equal deleted inserted replaced
2237:26f1bae40fb6 2238:5db6e0b63b35
243 bmap.data = surf->pixels; 243 bmap.data = surf->pixels;
244 bmap.pitch = surf->pitch; 244 bmap.pitch = surf->pitch;
245 bmap.width = surf->w; 245 bmap.width = surf->w;
246 bmap.height = surf->h; 246 bmap.height = surf->h;
247 247
248 mixedPalette = (cimage->fmt->type & D64_FMT_ILACE) && cimage->laceType == D64_ILACE_COLOR; 248 mixedPalette = (cimage->fmt->type & D64_FMT_ILACE) &&
249 cimage->extraInfo[D64_EI_ILACE_TYPE] == D64_ILACE_COLOR;
250
249 if ((res = dmC64SetImagePalette(&bmap, spec, mixedPalette)) != DMERR_OK) 251 if ((res = dmC64SetImagePalette(&bmap, spec, mixedPalette)) != DMERR_OK)
250 { 252 {
251 dmErrorMsg("Could not create copy of palette.\n"); 253 dmErrorMsg("Could not create copy of palette.\n");
252 return res; 254 return res;
253 } 255 }