1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00

(xpm_load) [DEBUG_X_COLORS]: Register colors.

This commit is contained in:
Gerd Moellmann 2000-04-14 19:36:35 +00:00
parent 1f71352bba
commit 3b4ae1ccce

View file

@ -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;