aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorKaroly Lorentey2003-12-28 16:03:57 +0000
committerKaroly Lorentey2003-12-28 16:03:57 +0000
commit2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02 (patch)
tree6e682f963c37c5cb6610711ec395ed4e82fff7fc /src/xfaces.c
parent53fed860b6a9e8f89eca3fd8a15e49c58aace85d (diff)
parent8af1a978a8f635a9d05f56200ba42613e3574c44 (diff)
downloademacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.tar.gz
emacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-138 Update from CVS * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-139 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-15
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index b3eba748720..fecd8e546cf 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1528,8 +1528,11 @@ If FRAME is nil or omitted, use the selected frame. */)
1528{ 1528{
1529 struct frame *f; 1529 struct frame *f;
1530 1530
1531 CHECK_FRAME (frame);
1532 CHECK_STRING (color); 1531 CHECK_STRING (color);
1532 if (NILP (frame))
1533 frame = selected_frame;
1534 else
1535 CHECK_FRAME (frame);
1533 f = XFRAME (frame); 1536 f = XFRAME (frame);
1534 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil; 1537 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil;
1535} 1538}
@@ -1546,8 +1549,11 @@ COLOR must be a valid color name. */)
1546{ 1549{
1547 struct frame *f; 1550 struct frame *f;
1548 1551
1549 CHECK_FRAME (frame);
1550 CHECK_STRING (color); 1552 CHECK_STRING (color);
1553 if (NILP (frame))
1554 frame = selected_frame;
1555 else
1556 CHECK_FRAME (frame);
1551 f = XFRAME (frame); 1557 f = XFRAME (frame);
1552 if (face_color_supported_p (f, SDATA (color), !NILP (background_p))) 1558 if (face_color_supported_p (f, SDATA (color), !NILP (background_p)))
1553 return Qt; 1559 return Qt;
@@ -2254,7 +2260,7 @@ static double
2254font_rescale_ratio (name) 2260font_rescale_ratio (name)
2255 char *name; 2261 char *name;
2256{ 2262{
2257 Lisp_Object tail, elt; 2263 Lisp_Object tail, elt;
2258 2264
2259 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail)) 2265 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail))
2260 { 2266 {
@@ -2467,7 +2473,7 @@ x_face_list_fonts (f, pattern, pfonts, nfonts, try_alternatives_p)
2467 2473
2468 if (nfonts < 0 && CONSP (lfonts)) 2474 if (nfonts < 0 && CONSP (lfonts))
2469 num_fonts = XFASTINT (Flength (lfonts)); 2475 num_fonts = XFASTINT (Flength (lfonts));
2470 2476
2471 /* Make a copy of the font names we got from X, and 2477 /* Make a copy of the font names we got from X, and
2472 split them into fields. */ 2478 split them into fields. */
2473 n = nignored = 0; 2479 n = nignored = 0;
@@ -3182,7 +3188,13 @@ lface_fully_specified_p (attrs)
3182 for (i = 1; i < LFACE_VECTOR_SIZE; ++i) 3188 for (i = 1; i < LFACE_VECTOR_SIZE; ++i)
3183 if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX 3189 if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX
3184 && i != LFACE_AVGWIDTH_INDEX) 3190 && i != LFACE_AVGWIDTH_INDEX)
3185 if (UNSPECIFIEDP (attrs[i])) 3191 if (UNSPECIFIEDP (attrs[i])
3192#ifdef MAC_OS
3193 /* MAC_TODO: No stipple support on Mac OS yet, this index is
3194 always unspecified. */
3195 && i != LFACE_STIPPLE_INDEX
3196#endif
3197 )
3186 break; 3198 break;
3187 3199
3188 return i == LFACE_VECTOR_SIZE; 3200 return i == LFACE_VECTOR_SIZE;