Mercurial > hg > dmlib
changeset 1735:eeb6a82b4654
Oops, left in wrong variable name. :S
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Jun 2018 22:29:49 +0300 |
parents | 183d503b17a7 |
children | 811b20de954c |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Fri Jun 08 22:14:13 2018 +0300 +++ b/tools/lib64gfx.c Fri Jun 08 22:29:49 2018 +0300 @@ -117,7 +117,7 @@ BOOL dmSetMixedColorC64Palette(DMImage *img) { - if (!dmImagePaletteAlloc(dst, C64_NCOLORS * C64_NCOLORS, -1)) + if (!dmImagePaletteAlloc(img, C64_NCOLORS * C64_NCOLORS, -1)) return FALSE; int n = 0; @@ -127,9 +127,9 @@ for (int n2 = 0; n2 < C64_NCOLORS; n2++) { const DMColor *col2 = &dmDefaultC64Palette[n2]; - dst->pal[n].r = (col1->r + col2->r) / 2; - dst->pal[n].g = (col1->g + col2->g) / 2; - dst->pal[n].b = (col1->b + col2->b) / 2; + img->pal[n].r = (col1->r + col2->r) / 2; + img->pal[n].g = (col1->g + col2->g) / 2; + img->pal[n].b = (col1->b + col2->b) / 2; n++; } }