Mercurial > hg > dmlib
diff tools/lib64gfx.c @ 1426:4c7b456d7f0b
Rename global dmC64Palette to dmDefaultC64Palette.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Nov 2017 07:07:26 +0200 |
parents | f08c4ace528d |
children | d8a83582f78f |
line wrap: on
line diff
--- a/tools/lib64gfx.c Wed Nov 15 07:06:47 2017 +0200 +++ b/tools/lib64gfx.c Wed Nov 15 07:07:26 2017 +0200 @@ -13,7 +13,7 @@ // Based on Pepto's palette, stolen from VICE -DMColor dmC64Palette[C64_NCOLORS] = +DMColor dmDefaultC64Palette[C64_NCOLORS] = { { 0x00, 0x00, 0x00, 0xff }, { 0xFF, 0xFF, 0xFF, 0xff }, @@ -1511,8 +1511,7 @@ if ((*pdst = dst = dmImageAlloc(src->width, src->height, DM_IFMT_PALETTE, -1)) == NULL) return DMERR_MALLOC; - // Set palette - dst->pal = (DMColor *) &dmC64Palette; + // Set partial palette information dst->ncolors = C64_NCOLORS; dst->constpal = TRUE;