diff options
| author | Gerd Moellmann | 2000-04-14 19:36:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-14 19:36:35 +0000 |
| commit | 3b4ae1ccce0adb13dbb5f263cbb0922cd586752d (patch) | |
| tree | 7a4b532b3f1c7cf38d1553a1ee51f04591e9cc63 | |
| parent | 1f71352bba7d5f1f8d39088928c38bb359431406 (diff) | |
| download | emacs-3b4ae1ccce0adb13dbb5f263cbb0922cd586752d.tar.gz emacs-3b4ae1ccce0adb13dbb5f263cbb0922cd586752d.zip | |
(xpm_load) [DEBUG_X_COLORS]: Register colors.
| -rw-r--r-- | src/xfns.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 9bc400627ec..edd718b6b89 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -6536,7 +6536,12 @@ xpm_load (f, img) | |||
| 6536 | img->colors = (unsigned long *) xmalloc (img->ncolors | 6536 | img->colors = (unsigned long *) xmalloc (img->ncolors |
| 6537 | * sizeof *img->colors); | 6537 | * sizeof *img->colors); |
| 6538 | for (i = 0; i < attrs.nalloc_pixels; ++i) | 6538 | for (i = 0; i < attrs.nalloc_pixels; ++i) |
| 6539 | img->colors[i] = attrs.alloc_pixels[i]; | 6539 | { |
| 6540 | img->colors[i] = attrs.alloc_pixels[i]; | ||
| 6541 | #ifdef DEBUG_X_COLORS | ||
| 6542 | register_color (img->colors[i]); | ||
| 6543 | #endif | ||
| 6544 | } | ||
| 6540 | 6545 | ||
| 6541 | img->width = attrs.width; | 6546 | img->width = attrs.width; |
| 6542 | img->height = attrs.height; | 6547 | img->height = attrs.height; |