Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 2468:16c57206cef7
Enable the use of internal (C64) palettes for generally specifying a palette.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Apr 2020 17:38:56 +0300 |
parents | a11ef670bd99 |
children | f3d9cdb0a295 |
comparison
equal
deleted
inserted
replaced
2467:a11ef670bd99 | 2468:16c57206cef7 |
---|---|
2308 optPaletteData->ncolors, D64_NCOLORS); | 2308 optPaletteData->ncolors, D64_NCOLORS); |
2309 } | 2309 } |
2310 | 2310 |
2311 optC64Spec.pal = optPaletteData; | 2311 optC64Spec.pal = optPaletteData; |
2312 break; | 2312 break; |
2313 | |
2314 default: | |
2315 if (optC64Palette != NULL) | |
2316 { | |
2317 dmMsg(1, "Using internal palette '%s' (%s).\n", | |
2318 optC64Palette->name, optC64Palette->desc); | |
2319 | |
2320 if ((res = dmC64PaletteFromC64Palette(&optPaletteData, optC64Palette, FALSE)) != DMERR_OK) | |
2321 { | |
2322 dmErrorMsg("Could not set up palette: %s.\n", | |
2323 dmErrorStr(res)); | |
2324 goto exit; | |
2325 } | |
2326 } | |
2313 } | 2327 } |
2314 | 2328 |
2315 switch (optInType) | 2329 switch (optInType) |
2316 { | 2330 { |
2317 case FFMT_SPRITE: | 2331 case FFMT_SPRITE: |