Mercurial > emacs
changeset 28597:6bbcb7e674b1
(xpm_load) [DEBUG_X_COLORS]: Register colors.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 14 Apr 2000 19:36:35 +0000 |
parents | f96c5116b2dd |
children | a4353b351702 |
files | src/xfns.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Fri Apr 14 19:27:02 2000 +0000 +++ b/src/xfns.c Fri Apr 14 19:36:35 2000 +0000 @@ -6536,7 +6536,12 @@ 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;