diff options
author | Jason Rumney <jasonr@gnu.org> | 2000-02-27 21:32:22 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2000-02-27 21:32:22 +0000 |
commit | bcc4670cfe5fa06c8bd2e920b7f3913dabdb3426 (patch) | |
tree | 636234d6060223a8ac1f7aebd08a1409913e6c8d /src/w32faces.c | |
parent | 65fb143ce7477e3b9e64e2a109a2225703b00544 (diff) | |
download | emacs-bcc4670cfe5fa06c8bd2e920b7f3913dabdb3426.tar.gz |
(tty_defined_color): Apply xfaces.c change from 02-17.
Diffstat (limited to 'src/w32faces.c')
-rw-r--r-- | src/w32faces.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/w32faces.c b/src/w32faces.c index 5384f97ad7c..65828f04e52 100644 --- a/src/w32faces.c +++ b/src/w32faces.c @@ -1093,7 +1093,8 @@ tty_defined_color (f, color_name, color_def, alloc) int alloc; { Lisp_Object color_desc; - int color_idx = FACE_TTY_DEFAULT_COLOR, red = 0, green = 0, blue = 0; + unsigned long color_idx = FACE_TTY_DEFAULT_COLOR; + unsigned long red = 0, green = 0, blue = 0; int status = 1; if (*color_name && !NILP (Ffboundp (Qtty_color_desc))) @@ -1129,7 +1130,10 @@ tty_defined_color (f, color_name, color_def, alloc) color_idx = FACE_TTY_DEFAULT_BG_COLOR; } - color_def->pixel = (unsigned long) color_idx; + if (color_idx != FACE_TTY_DEFAULT_COLOR) + status = 1; + + color_def->pixel = color_idx; color_def->red = red; color_def->green = green; color_def->blue = blue; |