comparison tools/gfxconv.c @ 2182:52985e4bc9ce

Wrong struct pointer variable used .. but actually the same pointer, so no harm done. Fixed anyway.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 12 Jun 2019 18:28:53 +0300
parents 560ba06a99eb
children e3f0eaf23f4f
comparison
equal deleted inserted replaced
2181:560ba06a99eb 2182:52985e4bc9ce
1433 } 1433 }
1434 1434
1435 // Perform color remapping 1435 // Perform color remapping
1436 DMImage *image = pimage; 1436 DMImage *image = pimage;
1437 BOOL allocated = FALSE; 1437 BOOL allocated = FALSE;
1438 if (optRemapColors && pimage->pixfmt == DM_PIXFMT_PALETTE) 1438 if (optRemapColors && image->pixfmt == DM_PIXFMT_PALETTE)
1439 { 1439 {
1440 if ((res = dmRemapImageColors(&image, pimage)) != DMERR_OK) 1440 if ((res = dmRemapImageColors(&image, pimage)) != DMERR_OK)
1441 return res; 1441 return res;
1442 1442
1443 allocated = TRUE; 1443 allocated = TRUE;