From 3b451f74120ac47b29c4966e7c30be51b71e57f3 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 17 Feb 2000 15:32:52 +0000 Subject: [PATCH] (tty_defined_color): Don't return faulire indication for unspecified-fg and unspecified-bg pseudo-colors. --- src/ChangeLog | 5 +++++ src/xfaces.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index a383d08cc1f..26f5f8869a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-02-17 Eli Zaretskii + + * xfaces.c (tty_defined_color): Don't return faulire indication + for unspecified-fg and unspecified-bg pseudo-colors. + 2000-02-17 Gerd Moellmann * alloc.c (mark_object): Don't mark symbol names in pure space. diff --git a/src/xfaces.c b/src/xfaces.c index 30f122d8651..55799d183d1 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -1122,6 +1122,9 @@ tty_defined_color (f, color_name, color_def, alloc) color_idx = FACE_TTY_DEFAULT_BG_COLOR; } + if (color_idx != FACE_TTY_DEFAULT_COLOR) + status = 1; + color_def->pixel = color_idx; color_def->red = red; color_def->green = green; -- 2.39.5