changeset 70147:37f988f09f67

[MAC_OS] (xpm_load_image): Fill in background field while we have ximg handy.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 21 Apr 2006 07:56:33 +0000
parents 2cd7cafcba54
children a2348b30cc21
files src/image.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Fri Apr 21 05:35:31 2006 +0000
+++ b/src/image.c	Fri Apr 21 07:56:33 2006 +0000
@@ -4460,6 +4460,10 @@
   img->width = width;
   img->height = height;
 
+  /* Maybe fill in the background field while we have ximg handy. */
+  if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
+    IMAGE_BACKGROUND (img, f, ximg);
+
   x_put_x_image (f, ximg, img->pixmap, width, height);
   x_destroy_x_image (ximg);
   if (have_mask)