Commit 3b4ae1cc authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(xpm_load) [DEBUG_X_COLORS]: Register colors.

parent 1f71352b
......@@ -6536,7 +6536,12 @@ xpm_load (f, img)
img->colors = (unsigned long *) xmalloc (img->ncolors
* sizeof *img->colors);
for (i = 0; i < attrs.nalloc_pixels; ++i)
img->colors[i] = attrs.alloc_pixels[i];
{
img->colors[i] = attrs.alloc_pixels[i];
#ifdef DEBUG_X_COLORS
register_color (img->colors[i]);
#endif
}
img->width = attrs.width;
img->height = attrs.height;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment