comparison tools/64vw.c @ 2201:9f3fb4004c20

Improvements to the lib64gfx palette handling.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Jun 2019 00:42:36 +0300
parents dcd26cdc395e
children 455a3849b8ac
comparison
equal deleted inserted replaced
2200:dcd26cdc395e 2201:9f3fb4004c20
228 bmap.data = surf->pixels; 228 bmap.data = surf->pixels;
229 bmap.pitch = surf->pitch; 229 bmap.pitch = surf->pitch;
230 bmap.width = surf->w; 230 bmap.width = surf->w;
231 bmap.height = surf->h; 231 bmap.height = surf->h;
232 232
233 if ((ret = dmSetDefaultC64Palette(&bmap)) != DMERR_OK) 233 if ((ret = dmC64SetImagePalette(&bmap, NULL, FALSE)) != DMERR_OK)
234 return ret; 234 return ret;
235 235
236 if (cimage->charData[0].data == NULL) 236 if (cimage->charData[0].data == NULL)
237 { 237 {
238 memcpy(&cimage->charData[0], &setCharROM, sizeof(DMC64MemBlock)); 238 memcpy(&cimage->charData[0], &setCharROM, sizeof(DMC64MemBlock));