From 43f7c3ea0cc6872ac018531122f17801f0baf825 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 1 Nov 2001 11:11:44 +0000 Subject: [PATCH] (x_build_heuristic_mask): Use four_corners_best instead of IMAGE_BACKGROUND. --- src/ChangeLog | 3 +++ src/xfns.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 586db55b6f..05553b4c9b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-11-01 Gerd Moellmann + * 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 4ae92260cf..e034cb6676 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. */ -- 2.20.1