Mercurial > emacs
comparison src/xfns.c @ 40608:134b236ad704
(x_build_heuristic_mask): Use four_corners_best
instead of IMAGE_BACKGROUND.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 01 Nov 2001 11:11:11 +0000 |
parents | d590ec395dcd |
children | cdfd4d09b79a |
comparison
equal
deleted
inserted
replaced
40607:657c6d2b13a2 | 40608:134b236ad704 |
---|---|
8203 use_img_background = 0; | 8203 use_img_background = 0; |
8204 } | 8204 } |
8205 } | 8205 } |
8206 | 8206 |
8207 if (use_img_background) | 8207 if (use_img_background) |
8208 bg = IMAGE_BACKGROUND (img, f, ximg); | 8208 bg = four_corners_best (ximg, img->width, img->height); |
8209 | 8209 |
8210 /* Set all bits in mask_img to 1 whose color in ximg is different | 8210 /* Set all bits in mask_img to 1 whose color in ximg is different |
8211 from the background color bg. */ | 8211 from the background color bg. */ |
8212 for (y = 0; y < img->height; ++y) | 8212 for (y = 0; y < img->height; ++y) |
8213 for (x = 0; x < img->width; ++x) | 8213 for (x = 0; x < img->width; ++x) |