[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/image.c,v
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] Changes to emacs/src/image.c,v |
Date: |
Wed, 13 Jun 2007 08:21:44 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: YAMAMOTO Mitsuharu <mituharu> 07/06/13 08:21:44
Index: image.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/image.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- image.c 6 Jun 2007 18:57:12 -0000 1.71
+++ image.c 13 Jun 2007 08:21:44 -0000 1.72
@@ -1647,6 +1647,7 @@
/* If the image spec does not specify a background color, the cached
image must have the same background color as the current frame.
+ Likewise for the foreground color of the cached monochrome image.
The following code be improved. For example, jpeg does not
support transparency, but currently a jpeg image spec won't match
a cached spec created with a different frame background. The
@@ -1656,8 +1657,8 @@
for (img = c->buckets[i]; img; img = img->next)
if (img->hash == hash
&& !NILP (Fequal (img->spec, spec))
- && (STRINGP (specified_bg)
- || img->background == FRAME_BACKGROUND_PIXEL (f)))
+ && img->frame_foreground == FRAME_FOREGROUND_PIXEL (f)
+ && img->frame_background == FRAME_BACKGROUND_PIXEL (f))
break;
return img;
}
@@ -1929,6 +1930,8 @@
img = make_image (spec, hash);
cache_image (f, img);
img->load_failed_p = img->type->load (f, img) == 0;
+ img->frame_foreground = FRAME_FOREGROUND_PIXEL (f);
+ img->frame_background = FRAME_BACKGROUND_PIXEL (f);
/* If we can't load the image, and we don't have a width and
height, use some arbitrary width and height so that we can
- [Emacs-diffs] Changes to emacs/src/image.c,v, Chong Yidong, 2007/06/02
- [Emacs-diffs] Changes to emacs/src/image.c,v, Chong Yidong, 2007/06/06
- [Emacs-diffs] Changes to emacs/src/image.c,v,
YAMAMOTO Mitsuharu <=
- [Emacs-diffs] Changes to emacs/src/image.c,v, Chong Yidong, 2007/06/13
- [Emacs-diffs] Changes to emacs/src/image.c,v, Jason Rumney, 2007/06/21