diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-04-21 07:56:33 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-04-21 07:56:33 +0000 |
commit | 0b8ac8420248493a9dbf19aced274492ee030fe0 (patch) | |
tree | 119eaf34dad208fca0ac6f10b6f535dee49bbc9c /src/image.c | |
parent | f67d6742cb77a21087e40ae7ee4c84556ca18970 (diff) | |
download | emacs-0b8ac8420248493a9dbf19aced274492ee030fe0.tar.gz |
[MAC_OS] (xpm_load_image): Fill in background field
while we have ximg handy.
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 10c402be119..e1962d87b0f 100644 --- a/src/image.c +++ b/src/image.c @@ -4460,6 +4460,10 @@ xpm_load_image (f, img, contents, end) 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) |