From: Gerd Moellmann Date: Thu, 1 Nov 2001 11:11:44 +0000 (+0000) Subject: (x_build_heuristic_mask): Use four_corners_best X-Git-Tag: ttn-vms-21-2-B4~18918 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=43f7c3ea0cc6872ac018531122f17801f0baf825;p=emacs.git (x_build_heuristic_mask): Use four_corners_best instead of IMAGE_BACKGROUND. --- 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 + * 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. */