diff options
| author | Jason Rumney | 2000-02-27 21:32:22 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-02-27 21:32:22 +0000 |
| commit | bcc4670cfe5fa06c8bd2e920b7f3913dabdb3426 (patch) | |
| tree | 636234d6060223a8ac1f7aebd08a1409913e6c8d /src | |
| parent | 65fb143ce7477e3b9e64e2a109a2225703b00544 (diff) | |
| download | emacs-bcc4670cfe5fa06c8bd2e920b7f3913dabdb3426.tar.gz emacs-bcc4670cfe5fa06c8bd2e920b7f3913dabdb3426.zip | |
(tty_defined_color): Apply xfaces.c change from 02-17.
Diffstat (limited to 'src')
| -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) | |||
| 1093 | int alloc; | 1093 | int alloc; |
| 1094 | { | 1094 | { |
| 1095 | Lisp_Object color_desc; | 1095 | Lisp_Object color_desc; |
| 1096 | int color_idx = FACE_TTY_DEFAULT_COLOR, red = 0, green = 0, blue = 0; | 1096 | unsigned long color_idx = FACE_TTY_DEFAULT_COLOR; |
| 1097 | unsigned long red = 0, green = 0, blue = 0; | ||
| 1097 | int status = 1; | 1098 | int status = 1; |
| 1098 | 1099 | ||
| 1099 | if (*color_name && !NILP (Ffboundp (Qtty_color_desc))) | 1100 | if (*color_name && !NILP (Ffboundp (Qtty_color_desc))) |
| @@ -1129,7 +1130,10 @@ tty_defined_color (f, color_name, color_def, alloc) | |||
| 1129 | color_idx = FACE_TTY_DEFAULT_BG_COLOR; | 1130 | color_idx = FACE_TTY_DEFAULT_BG_COLOR; |
| 1130 | } | 1131 | } |
| 1131 | 1132 | ||
| 1132 | color_def->pixel = (unsigned long) color_idx; | 1133 | if (color_idx != FACE_TTY_DEFAULT_COLOR) |
| 1134 | status = 1; | ||
| 1135 | |||
| 1136 | color_def->pixel = color_idx; | ||
| 1133 | color_def->red = red; | 1137 | color_def->red = red; |
| 1134 | color_def->green = green; | 1138 | color_def->green = green; |
| 1135 | color_def->blue = blue; | 1139 | color_def->blue = blue; |