]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_build_heuristic_mask): Use four_corners_best
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 11:11:44 +0000 (11:11 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 11:11:44 +0000 (11:11 +0000)
instead of IMAGE_BACKGROUND.

src/ChangeLog
src/xfns.c

index 586db55b6f6182d641adca6d4857c6b8e68e3e1e..05553b4c9bba2bbe4920eb0a32017d92e13246ac 100644 (file)
@@ -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): 
index 4ae92260cfd0e3bee3f6b53f02f46ecb9ada3841..e034cb6676bb75bb7085ade0ca0c725ecd05310a 100644 (file)
@@ -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.  */