diff src/xfaces.c @ 78665:e63795496f58

(tty_supports_face_attributes_p): Use instead of LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX in incorrectly copied code.
author Richard M. Stallman <rms@gnu.org>
date Mon, 27 Aug 2007 03:50:38 +0000
parents 922696f363b0
children 00edecc1d311
line wrap: on
line diff
--- a/src/xfaces.c	Mon Aug 27 03:49:17 2007 +0000
+++ b/src/xfaces.c	Mon Aug 27 03:50:38 2007 +0000
@@ -6064,7 +6064,7 @@
   val = attrs[LFACE_INVERSE_INDEX];
   if (!UNSPECIFIEDP (val))
     {
-      if (face_attr_equal_p (val, def_attrs[LFACE_UNDERLINE_INDEX]))
+      if (face_attr_equal_p (val, def_attrs[LFACE_INVERSE_INDEX]))
 	return 0;		/* same as default */
       else
 	test_caps |= TTY_CAP_INVERSE;
@@ -6107,7 +6107,7 @@
   bg = attrs[LFACE_BACKGROUND_INDEX];
   if (STRINGP (bg))
     {
-      Lisp_Object def_bg = def_attrs[LFACE_FOREGROUND_INDEX];
+      Lisp_Object def_bg = def_attrs[LFACE_BACKGROUND_INDEX];
 
       if (face_attr_equal_p (bg, def_bg))
 	return 0;		/* same as default */