comparison src/image.c @ 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 2c4ba2c48153
children 60bff6b0c656
comparison
equal deleted inserted replaced
70146:2cd7cafcba54 70147:37f988f09f67
4458 } 4458 }
4459 4459
4460 img->width = width; 4460 img->width = width;
4461 img->height = height; 4461 img->height = height;
4462 4462
4463 /* Maybe fill in the background field while we have ximg handy. */
4464 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
4465 IMAGE_BACKGROUND (img, f, ximg);
4466
4463 x_put_x_image (f, ximg, img->pixmap, width, height); 4467 x_put_x_image (f, ximg, img->pixmap, width, height);
4464 x_destroy_x_image (ximg); 4468 x_destroy_x_image (ximg);
4465 if (have_mask) 4469 if (have_mask)
4466 { 4470 {
4467 /* Fill in the background_transparent field while we have the 4471 /* Fill in the background_transparent field while we have the