]> git.eshelyaron.com Git - emacs.git/commitdiff
(xpm_load) [DEBUG_X_COLORS]: Register colors.
authorGerd Moellmann <gerd@gnu.org>
Fri, 14 Apr 2000 19:36:35 +0000 (19:36 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 14 Apr 2000 19:36:35 +0000 (19:36 +0000)
src/xfns.c

index 9bc400627ec77bd3753871c2575fd2cfdff58feb..edd718b6b8918608d1abd2bdd868e6735286dc16 100644 (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;