Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1730:881a3fc421d8
Use the default C64 palette whenever we need it, but make it possible to override it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Jun 2018 22:03:19 +0300 |
parents | 80adcda72210 |
children | 474055f25ab0 |
comparison
equal
deleted
inserted
replaced
1729:f4015f6cb173 | 1730:881a3fc421d8 |
---|---|
1294 return DMERR_MALLOC; | 1294 return DMERR_MALLOC; |
1295 | 1295 |
1296 // Set partial palette information | 1296 // Set partial palette information |
1297 dst->ncolors = C64_NCOLORS; | 1297 dst->ncolors = C64_NCOLORS; |
1298 dst->constpal = TRUE; | 1298 dst->constpal = TRUE; |
1299 dst->pal = dmDefaultC64Palette; | |
1299 | 1300 |
1300 // Convert | 1301 // Convert |
1301 if (fmt->convertFrom != NULL) | 1302 if (fmt->convertFrom != NULL) |
1302 res = fmt->convertFrom(dst, src, fmt); | 1303 res = fmt->convertFrom(dst, src, fmt); |
1303 else | 1304 else |