summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-11-01 11:11:44 +0000
committerGerd Moellmann <gerd@gnu.org>2001-11-01 11:11:44 +0000
commit43f7c3ea0cc6872ac018531122f17801f0baf825 (patch)
tree78c108c719d26911dec2871b9e896d604850ed79 /src
parentb350c2e5c30600d1361bd8dc61432158e38f002b (diff)
downloademacs-43f7c3ea0cc6872ac018531122f17801f0baf825.tar.gz
(x_build_heuristic_mask): Use four_corners_best
instead of IMAGE_BACKGROUND.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfns.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 586db55b6f6..05553b4c9bb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2001-11-01 Gerd Moellmann <gerd@gnu.org>
+ * xfns.c (x_build_heuristic_mask): Use four_corners_best
+ instead of IMAGE_BACKGROUND.
+
* xfns.c (four_corners_best): Reindent.
* xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
diff --git a/src/xfns.c b/src/xfns.c
index 4ae92260cfd..e034cb6676b 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -8205,7 +8205,7 @@ x_build_heuristic_mask (f, img, how)
}
if (use_img_background)
- bg = IMAGE_BACKGROUND (img, f, ximg);
+ bg = four_corners_best (ximg, img->width, img->height);
/* Set all bits in mask_img to 1 whose color in ximg is different
from the background color bg. */