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:
parent
1f71352bba
commit
3b4ae1ccce
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue