annotate src/objects-msw.c @ 245:51092a27c943 r20-5b21

Import from CVS: tag r20-5b21
author cvs
date Mon, 13 Aug 2007 10:17:54 +0200
parents f220cc83d72e
children 83b3d10dcba9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1 /* mswindows-specific Lisp objects.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
3 Copyright (C) 1995 Board of Trustees, University of Illinois.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
4 Copyright (C) 1995 Tinker Systems.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
5 Copyright (C) 1995, 1996 Ben Wing.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
6 Copyright (C) 1995 Sun Microsystems, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
7 Copyright (C) 1997 Jonathan Harris.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
8
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
9 This file is part of XEmacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
10
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
11 XEmacs is free software; you can redistribute it and/or modify it
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
12 under the terms of the GNU General Public License as published by the
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
13 Free Software Foundation; either version 2, or (at your option) any
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
14 later version.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
15
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
19 for more details.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
20
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
21 You should have received a copy of the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
22 along with XEmacs; see the file COPYING. If not, write to
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
23 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
24 Boston, MA 02111-1307, USA. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
25
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
26 /* Synched up with: Not in FSF. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
27
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
28 /* Authorship:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
29
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
30 Jamie Zawinski, Chuck Thompson, Ben Wing
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
31 Rewritten for mswindows by Jonathan Harris, November 1997 for 20.4.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
32 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
33
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
34
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
35 /* TODO: palette handling */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
36
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
37 #include <config.h>
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
38 #include "lisp.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
39
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
40 #include "console-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
41 #include "objects-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
42
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
43 #ifdef MULE
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
44 #include "mule-charset.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
45 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
46
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
47 #include "buffer.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
48 #include "device.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
49 #include "insdel.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
50
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
51 #include "windows.h"
231
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
52 #ifdef __CYGWIN32__
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
53 #define stricmp strcasecmp
557eaa0339bf Import from CVS: tag r20-5b14
cvs
parents: 227
diff changeset
54 #endif
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
55
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
56 typedef struct colormap_t
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
57 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
58 char *name;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
59 COLORREF colorref;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
60 } colormap_t;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
61
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
62 static CONST colormap_t mswindows_X_color_map[] =
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
63 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
64 {"Black" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
65 {"Gray0" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
66 {"Grey0" , PALETTERGB ( 0, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
67 {"Transparent" , PALETTERGB ( 0, 0, 1)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
68 {"NavyBlue" , PALETTERGB ( 0, 0,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
69 {"navy" , PALETTERGB ( 0, 0,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
70 {"blue4" , PALETTERGB ( 0, 0,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
71 {"MediumBlue" , PALETTERGB ( 0, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
72 {"blue3" , PALETTERGB ( 0, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
73 {"blue2" , PALETTERGB ( 0, 0,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
74 {"Blue" , PALETTERGB ( 0, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
75 {"blue1" , PALETTERGB ( 0, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
76 {"DarkGreen" , PALETTERGB ( 0, 86, 45)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
77 {"DeepSkyBlue4" , PALETTERGB ( 0,104,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
78 {"turquoise4" , PALETTERGB ( 0,134,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
79 {"green4" , PALETTERGB ( 0,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
80 {"SpringGreen4" , PALETTERGB ( 0,139, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
81 {"cyan4" , PALETTERGB ( 0,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
82 {"MediumAquamarine" , PALETTERGB ( 0,147,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
83 {"DeepSkyBlue3" , PALETTERGB ( 0,154,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
84 {"DarkTurquoise" , PALETTERGB ( 0,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
85 {"LimeGreen" , PALETTERGB ( 0,175, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
86 {"DeepSkyBlue2" , PALETTERGB ( 0,178,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
87 {"DeepSkyBlue" , PALETTERGB ( 0,191,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
88 {"DeepSkyBlue1" , PALETTERGB ( 0,191,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
89 {"turquoise3" , PALETTERGB ( 0,197,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
90 {"green3" , PALETTERGB ( 0,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
91 {"SpringGreen3" , PALETTERGB ( 0,205,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
92 {"cyan3" , PALETTERGB ( 0,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
93 {"MediumTurquoise" , PALETTERGB ( 0,210,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
94 {"turquoise2" , PALETTERGB ( 0,229,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
95 {"green2" , PALETTERGB ( 0,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
96 {"SpringGreen2" , PALETTERGB ( 0,238,118)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
97 {"cyan2" , PALETTERGB ( 0,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
98 {"turquoise1" , PALETTERGB ( 0,245,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
99 {"MediumSpringGreen" , PALETTERGB ( 0,250,154)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
100 {"Green" , PALETTERGB ( 0,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
101 {"green1" , PALETTERGB ( 0,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
102 {"SpringGreen" , PALETTERGB ( 0,255,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
103 {"SpringGreen1" , PALETTERGB ( 0,255,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
104 {"Cyan" , PALETTERGB ( 0,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
105 {"cyan1" , PALETTERGB ( 0,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
106 {"Gray1" , PALETTERGB ( 3, 3, 3)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
107 {"Grey1" , PALETTERGB ( 3, 3, 3)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
108 {"Gray2" , PALETTERGB ( 5, 5, 5)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
109 {"Grey2" , PALETTERGB ( 5, 5, 5)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
110 {"Gray3" , PALETTERGB ( 8, 8, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
111 {"Grey3" , PALETTERGB ( 8, 8, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
112 {"Gray4" , PALETTERGB ( 10, 10, 10)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
113 {"Grey4" , PALETTERGB ( 10, 10, 10)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
114 {"Gray5" , PALETTERGB ( 13, 13, 13)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
115 {"Grey5" , PALETTERGB ( 13, 13, 13)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
116 {"Gray6" , PALETTERGB ( 15, 15, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
117 {"Grey6" , PALETTERGB ( 15, 15, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
118 {"DodgerBlue4" , PALETTERGB ( 16, 78,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
119 {"Gray7" , PALETTERGB ( 18, 18, 18)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
120 {"Grey7" , PALETTERGB ( 18, 18, 18)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
121 {"Gray8" , PALETTERGB ( 20, 20, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
122 {"Grey8" , PALETTERGB ( 20, 20, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
123 {"Gray9" , PALETTERGB ( 23, 23, 23)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
124 {"Grey9" , PALETTERGB ( 23, 23, 23)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
125 {"DodgerBlue3" , PALETTERGB ( 24,116,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
126 {"MidnightBlue" , PALETTERGB ( 25, 25,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
127 {"Turquoise" , PALETTERGB ( 25,204,223)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
128 {"Gray10" , PALETTERGB ( 26, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
129 {"Grey10" , PALETTERGB ( 26, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
130 {"Gray11" , PALETTERGB ( 28, 28, 28)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
131 {"Grey11" , PALETTERGB ( 28, 28, 28)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
132 {"DodgerBlue2" , PALETTERGB ( 28,134,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
133 {"DodgerBlue" , PALETTERGB ( 30,144,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
134 {"DodgerBlue1" , PALETTERGB ( 30,144,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
135 {"Gray12" , PALETTERGB ( 31, 31, 31)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
136 {"Grey12" , PALETTERGB ( 31, 31, 31)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
137 {"LightSeaGreen" , PALETTERGB ( 32,178,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
138 {"Gray13" , PALETTERGB ( 33, 33, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
139 {"Grey13" , PALETTERGB ( 33, 33, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
140 {"Indigo2" , PALETTERGB ( 33,136,104)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
141 {"CornflowerBlue" , PALETTERGB ( 34, 34,152)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
142 {"ForestGreen" , PALETTERGB ( 34,139, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
143 {"Gray14" , PALETTERGB ( 36, 36, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
144 {"Grey14" , PALETTERGB ( 36, 36, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
145 {"Gray15" , PALETTERGB ( 38, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
146 {"Grey15" , PALETTERGB ( 38, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
147 {"RoyalBlue4" , PALETTERGB ( 39, 64,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
148 {"Gray16" , PALETTERGB ( 41, 41, 41)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
149 {"Grey16" , PALETTERGB ( 41, 41, 41)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
150 {"Gray17" , PALETTERGB ( 43, 43, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
151 {"Grey17" , PALETTERGB ( 43, 43, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
152 {"Gray18" , PALETTERGB ( 46, 46, 46)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
153 {"Grey18" , PALETTERGB ( 46, 46, 46)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
154 {"SeaGreen" , PALETTERGB ( 46,139, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
155 {"SeaGreen4" , PALETTERGB ( 46,139, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
156 {"DarkSlateGray" , PALETTERGB ( 47, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
157 {"DarkSlateGrey" , PALETTERGB ( 47, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
158 {"Gray19" , PALETTERGB ( 48, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
159 {"Grey19" , PALETTERGB ( 48, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
160 {"MediumForestGreen" , PALETTERGB ( 50,129, 75)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
161 {"Aquamarine" , PALETTERGB ( 50,191,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
162 {"YellowGreen" , PALETTERGB ( 50,216, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
163 {"Gray20" , PALETTERGB ( 51, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
164 {"Grey20" , PALETTERGB ( 51, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
165 {"MediumSeaGreen" , PALETTERGB ( 52,119,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
166 {"Gray21" , PALETTERGB ( 54, 54, 54)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
167 {"Grey21" , PALETTERGB ( 54, 54, 54)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
168 {"SteelBlue4" , PALETTERGB ( 54,100,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
169 {"Gray22" , PALETTERGB ( 56, 56, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
170 {"Grey22" , PALETTERGB ( 56, 56, 56)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
171 {"DarkSlateBlue" , PALETTERGB ( 56, 75,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
172 {"RoyalBlue3" , PALETTERGB ( 58, 95,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
173 {"Gray23" , PALETTERGB ( 59, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
174 {"Grey23" , PALETTERGB ( 59, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
175 {"Gray24" , PALETTERGB ( 61, 61, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
176 {"Grey24" , PALETTERGB ( 61, 61, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
177 {"Gray25" , PALETTERGB ( 64, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
178 {"Grey25" , PALETTERGB ( 64, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
179 {"RoyalBlue" , PALETTERGB ( 65,105,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
180 {"Gray26" , PALETTERGB ( 66, 66, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
181 {"Grey26" , PALETTERGB ( 66, 66, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
182 {"RoyalBlue2" , PALETTERGB ( 67,110,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
183 {"SeaGreen3" , PALETTERGB ( 67,205,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
184 {"Gray27" , PALETTERGB ( 69, 69, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
185 {"Grey27" , PALETTERGB ( 69, 69, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
186 {"chartreuse4" , PALETTERGB ( 69,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
187 {"aquamarine4" , PALETTERGB ( 69,139,116)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
188 {"SteelBlue" , PALETTERGB ( 70,130,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
189 {"SlateBlue4" , PALETTERGB ( 71, 60,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
190 {"Gray28" , PALETTERGB ( 71, 71, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
191 {"Grey28" , PALETTERGB ( 71, 71, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
192 {"RoyalBlue1" , PALETTERGB ( 72,118,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
193 {"Gray29" , PALETTERGB ( 74, 74, 74)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
194 {"Grey29" , PALETTERGB ( 74, 74, 74)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
195 {"SkyBlue4" , PALETTERGB ( 74,112,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
196 {"Indigo" , PALETTERGB ( 75, 0,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
197 {"Gray30" , PALETTERGB ( 77, 77, 77)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
198 {"Grey30" , PALETTERGB ( 77, 77, 77)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
199 {"SeaGreen2" , PALETTERGB ( 78,238,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
200 {"Gray31" , PALETTERGB ( 79, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
201 {"Grey31" , PALETTERGB ( 79, 79, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
202 {"SteelBlue3" , PALETTERGB ( 79,148,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
203 {"Gray32" , PALETTERGB ( 82, 82, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
204 {"Grey32" , PALETTERGB ( 82, 82, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
205 {"DarkSlateGray4" , PALETTERGB ( 82,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
206 {"CadetBlue4" , PALETTERGB ( 83,134,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
207 {"DimGray" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
208 {"DimGrey" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
209 {"Gray33" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
210 {"Grey33" , PALETTERGB ( 84, 84, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
211 {"PaleGreen4" , PALETTERGB ( 84,139, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
212 {"SeaGreen1" , PALETTERGB ( 84,255,159)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
213 {"purple4" , PALETTERGB ( 85, 26,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
214 {"DarkOliveGreen" , PALETTERGB ( 85, 86, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
215 {"Gray34" , PALETTERGB ( 87, 87, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
216 {"Grey34" , PALETTERGB ( 87, 87, 87)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
217 {"Gray35" , PALETTERGB ( 89, 89, 89)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
218 {"Grey35" , PALETTERGB ( 89, 89, 89)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
219 {"Gray36" , PALETTERGB ( 92, 92, 92)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
220 {"Grey36" , PALETTERGB ( 92, 92, 92)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
221 {"SteelBlue2" , PALETTERGB ( 92,172,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
222 {"MediumPurple4" , PALETTERGB ( 93, 71,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
223 {"Gray37" , PALETTERGB ( 94, 94, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
224 {"Grey37" , PALETTERGB ( 94, 94, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
225 {"CadetBlue" , PALETTERGB ( 95,146,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
226 {"LightSkyBlue4" , PALETTERGB ( 96,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
227 {"Gray38" , PALETTERGB ( 97, 97, 97)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
228 {"Grey38" , PALETTERGB ( 97, 97, 97)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
229 {"Gray39" , PALETTERGB ( 99, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
230 {"Grey39" , PALETTERGB ( 99, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
231 {"SteelBlue1" , PALETTERGB ( 99,184,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
232 {"Gray40" , PALETTERGB (102,102,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
233 {"Grey40" , PALETTERGB (102,102,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
234 {"PaleTurquoise4" , PALETTERGB (102,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
235 {"chartreuse3" , PALETTERGB (102,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
236 {"aquamarine3" , PALETTERGB (102,205,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
237 {"DarkOrchid4" , PALETTERGB (104, 34,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
238 {"LightBlue4" , PALETTERGB (104,131,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
239 {"SlateBlue3" , PALETTERGB (105, 89,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
240 {"Gray41" , PALETTERGB (105,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
241 {"Grey41" , PALETTERGB (105,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
242 {"OliveDrab4" , PALETTERGB (105,139, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
243 {"DarkSeaGreen4" , PALETTERGB (105,139,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
244 {"SlateBlue" , PALETTERGB (106, 90,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
245 {"MediumSlateBlue" , PALETTERGB (106,106,141)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
246 {"IndianRed" , PALETTERGB (107, 57, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
247 {"Gray42" , PALETTERGB (107,107,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
248 {"Grey42" , PALETTERGB (107,107,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
249 {"OliveDrab" , PALETTERGB (107,142, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
250 {"SlateGray4" , PALETTERGB (108,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
251 {"SkyBlue3" , PALETTERGB (108,166,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
252 {"Gray43" , PALETTERGB (110,110,110)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
253 {"Grey43" , PALETTERGB (110,110,110)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
254 {"LightSteelBlue4" , PALETTERGB (110,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
255 {"DarkOliveGreen4" , PALETTERGB (110,139, 61)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
256 {"Gray44" , PALETTERGB (112,112,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
257 {"Grey44" , PALETTERGB (112,112,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
258 {"SlateGray" , PALETTERGB (112,128,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
259 {"SlateGrey" , PALETTERGB (112,128,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
260 {"SkyBlue" , PALETTERGB (114,159,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
261 {"Gray45" , PALETTERGB (115,115,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
262 {"Grey45" , PALETTERGB (115,115,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
263 {"PaleGreen" , PALETTERGB (115,222,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
264 {"Gray46" , PALETTERGB (117,117,117)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
265 {"Grey46" , PALETTERGB (117,117,117)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
266 {"chartreuse2" , PALETTERGB (118,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
267 {"aquamarine2" , PALETTERGB (118,238,198)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
268 {"LightSlateGray" , PALETTERGB (119,136,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
269 {"LightSlateGrey" , PALETTERGB (119,136,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
270 {"Gray47" , PALETTERGB (120,120,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
271 {"Grey47" , PALETTERGB (120,120,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
272 {"DarkSlateGray3" , PALETTERGB (121,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
273 {"MediumOrchid4" , PALETTERGB (122, 55,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
274 {"SlateBlue2" , PALETTERGB (122,103,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
275 {"Gray48" , PALETTERGB (122,122,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
276 {"Grey48" , PALETTERGB (122,122,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
277 {"LightCyan4" , PALETTERGB (122,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
278 {"CadetBlue3" , PALETTERGB (122,197,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
279 {"LightSteelBlue" , PALETTERGB (124,152,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
280 {"PaleGreen3" , PALETTERGB (124,205,124)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
281 {"LawnGreen" , PALETTERGB (124,252, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
282 {"purple3" , PALETTERGB (125, 38,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
283 {"Gray49" , PALETTERGB (125,125,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
284 {"Grey49" , PALETTERGB (125,125,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
285 {"Gray" , PALETTERGB (126,126,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
286 {"Grey" , PALETTERGB (126,126,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
287 {"SkyBlue2" , PALETTERGB (126,192,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
288 {"Gray50" , PALETTERGB (127,127,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
289 {"Grey50" , PALETTERGB (127,127,127)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
290 {"chartreuse" , PALETTERGB (127,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
291 {"chartreuse1" , PALETTERGB (127,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
292 {"aquamarine1" , PALETTERGB (127,255,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
293 {"Gray51" , PALETTERGB (130,130,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
294 {"Grey51" , PALETTERGB (130,130,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
295 {"SlateBlue1" , PALETTERGB (131,111,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
296 {"honeydew4" , PALETTERGB (131,139,131)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
297 {"azure4" , PALETTERGB (131,139,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
298 {"LightSlateBlue" , PALETTERGB (132,112,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
299 {"Gray52" , PALETTERGB (133,133,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
300 {"Grey52" , PALETTERGB (133,133,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
301 {"Gray53" , PALETTERGB (135,135,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
302 {"Grey53" , PALETTERGB (135,135,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
303 {"LightSkyBlue" , PALETTERGB (135,206,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
304 {"SkyBlue1" , PALETTERGB (135,206,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
305 {"MediumPurple3" , PALETTERGB (137,104,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
306 {"BlueViolet" , PALETTERGB (138, 43,226)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
307 {"Gray54" , PALETTERGB (138,138,138)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
308 {"Grey54" , PALETTERGB (138,138,138)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
309 {"red4" , PALETTERGB (139, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
310 {"magenta4" , PALETTERGB (139, 0,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
311 {"DeepPink4" , PALETTERGB (139, 10, 80)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
312 {"firebrick4" , PALETTERGB (139, 26, 26)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
313 {"maroon4" , PALETTERGB (139, 28, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
314 {"DarkOrchid" , PALETTERGB (139, 32,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
315 {"VioletRed4" , PALETTERGB (139, 34, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
316 {"brown4" , PALETTERGB (139, 35, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
317 {"OrangeRed4" , PALETTERGB (139, 37, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
318 {"tomato4" , PALETTERGB (139, 54, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
319 {"IndianRed4" , PALETTERGB (139, 58, 58)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
320 {"HotPink4" , PALETTERGB (139, 58, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
321 {"coral4" , PALETTERGB (139, 62, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
322 {"DarkOrange4" , PALETTERGB (139, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
323 {"SaddleBrown" , PALETTERGB (139, 69, 19)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
324 {"chocolate4" , PALETTERGB (139, 69, 19)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
325 {"sienna4" , PALETTERGB (139, 71, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
326 {"PaleVioletRed4" , PALETTERGB (139, 71, 93)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
327 {"orchid4" , PALETTERGB (139, 71,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
328 {"salmon4" , PALETTERGB (139, 76, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
329 {"LightSalmon4" , PALETTERGB (139, 87, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
330 {"orange4" , PALETTERGB (139, 90, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
331 {"tan4" , PALETTERGB (139, 90, 43)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
332 {"LightPink4" , PALETTERGB (139, 95,101)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
333 {"pink4" , PALETTERGB (139, 99,108)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
334 {"DarkGoldenrod4" , PALETTERGB (139,101, 8)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
335 {"plum4" , PALETTERGB (139,102,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
336 {"goldenrod4" , PALETTERGB (139,105, 20)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
337 {"RosyBrown4" , PALETTERGB (139,105,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
338 {"burlywood4" , PALETTERGB (139,115, 85)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
339 {"gold4" , PALETTERGB (139,117, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
340 {"PeachPuff4" , PALETTERGB (139,119,101)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
341 {"NavajoWhite4" , PALETTERGB (139,121, 94)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
342 {"thistle4" , PALETTERGB (139,123,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
343 {"bisque4" , PALETTERGB (139,125,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
344 {"MistyRose4" , PALETTERGB (139,125,123)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
345 {"wheat4" , PALETTERGB (139,126,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
346 {"LightGoldenrod4" , PALETTERGB (139,129, 76)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
347 {"AntiqueWhite4" , PALETTERGB (139,131,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
348 {"LavenderBlush4" , PALETTERGB (139,131,134)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
349 {"khaki4" , PALETTERGB (139,134, 78)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
350 {"seashell4" , PALETTERGB (139,134,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
351 {"cornsilk4" , PALETTERGB (139,136,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
352 {"LemonChiffon4" , PALETTERGB (139,137,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
353 {"snow4" , PALETTERGB (139,137,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
354 {"yellow4" , PALETTERGB (139,139, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
355 {"LightYellow4" , PALETTERGB (139,139,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
356 {"ivory4" , PALETTERGB (139,139,131)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
357 {"Gray55" , PALETTERGB (140,140,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
358 {"Grey55" , PALETTERGB (140,140,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
359 {"LightSkyBlue3" , PALETTERGB (141,182,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
360 {"DarkSlateGray2" , PALETTERGB (141,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
361 {"Firebrick" , PALETTERGB (142, 35, 35)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
362 {"CadetBlue2" , PALETTERGB (142,229,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
363 {"Maroon" , PALETTERGB (143, 0, 82)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
364 {"Gray56" , PALETTERGB (143,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
365 {"Grey56" , PALETTERGB (143,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
366 {"DarkSeaGreen" , PALETTERGB (143,188,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
367 {"PaleGreen2" , PALETTERGB (144,238,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
368 {"purple2" , PALETTERGB (145, 44,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
369 {"Gray57" , PALETTERGB (145,145,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
370 {"Grey57" , PALETTERGB (145,145,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
371 {"MediumPurple" , PALETTERGB (147,112,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
372 {"DarkViolet" , PALETTERGB (148, 0,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
373 {"Gray58" , PALETTERGB (148,148,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
374 {"Grey58" , PALETTERGB (148,148,148)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
375 {"Sienna" , PALETTERGB (150, 82, 45)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
376 {"Gray59" , PALETTERGB (150,150,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
377 {"Grey59" , PALETTERGB (150,150,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
378 {"PaleTurquoise3" , PALETTERGB (150,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
379 {"DarkSlateGray1" , PALETTERGB (151,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
380 {"CadetBlue1" , PALETTERGB (152,245,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
381 {"Gray60" , PALETTERGB (153,153,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
382 {"Grey60" , PALETTERGB (153,153,153)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
383 {"DarkOrchid3" , PALETTERGB (154, 50,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
384 {"LightBlue3" , PALETTERGB (154,192,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
385 {"OliveDrab3" , PALETTERGB (154,205, 50)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
386 {"PaleGreen1" , PALETTERGB (154,255,154)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
387 {"purple1" , PALETTERGB (155, 48,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
388 {"DarkSeaGreen3" , PALETTERGB (155,205,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
389 {"Violet" , PALETTERGB (156, 62,206)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
390 {"Gray61" , PALETTERGB (156,156,156)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
391 {"Grey61" , PALETTERGB (156,156,156)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
392 {"Gray62" , PALETTERGB (158,158,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
393 {"Grey62" , PALETTERGB (158,158,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
394 {"MediumPurple2" , PALETTERGB (159,121,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
395 {"SlateGray3" , PALETTERGB (159,182,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
396 {"purple" , PALETTERGB (160, 32,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
397 {"Gray63" , PALETTERGB (161,161,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
398 {"Grey63" , PALETTERGB (161,161,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
399 {"LightSteelBlue3" , PALETTERGB (162,181,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
400 {"DarkOliveGreen3" , PALETTERGB (162,205, 90)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
401 {"Gray64" , PALETTERGB (163,163,163)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
402 {"Grey64" , PALETTERGB (163,163,163)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
403 {"LightSkyBlue2" , PALETTERGB (164,211,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
404 {"Brown" , PALETTERGB (165, 42, 42)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
405 {"Gray65" , PALETTERGB (166,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
406 {"Grey65" , PALETTERGB (166,166,166)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
407 {"Gray66" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
408 {"Grey66" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
409 {"LightGray" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
410 {"LightGrey" , PALETTERGB (168,168,168)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
411 {"MediumPurple1" , PALETTERGB (171,130,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
412 {"Gray67" , PALETTERGB (171,171,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
413 {"Grey67" , PALETTERGB (171,171,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
414 {"Gray68" , PALETTERGB (173,173,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
415 {"Grey68" , PALETTERGB (173,173,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
416 {"LightBlue" , PALETTERGB (173,216,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
417 {"GreenYellow" , PALETTERGB (173,255, 47)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
418 {"PaleTurquoise2" , PALETTERGB (174,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
419 {"PaleTurquoise" , PALETTERGB (175,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
420 {"Gray69" , PALETTERGB (176,176,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
421 {"Grey69" , PALETTERGB (176,176,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
422 {"PowderBlue" , PALETTERGB (176,224,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
423 {"LightSkyBlue1" , PALETTERGB (176,226,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
424 {"DarkOrchid2" , PALETTERGB (178, 58,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
425 {"LightBlue2" , PALETTERGB (178,223,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
426 {"Khaki" , PALETTERGB (179,179,126)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
427 {"Gray70" , PALETTERGB (179,179,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
428 {"Grey70" , PALETTERGB (179,179,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
429 {"OliveDrab2" , PALETTERGB (179,238, 58)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
430 {"MediumOrchid3" , PALETTERGB (180, 82,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
431 {"LightCyan3" , PALETTERGB (180,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
432 {"DarkSeaGreen2" , PALETTERGB (180,238,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
433 {"Gray71" , PALETTERGB (181,181,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
434 {"Grey71" , PALETTERGB (181,181,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
435 {"DarkGoldenrod" , PALETTERGB (184,134, 11)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
436 {"Gray72" , PALETTERGB (184,184,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
437 {"Grey72" , PALETTERGB (184,184,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
438 {"SlateGray2" , PALETTERGB (185,211,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
439 {"MediumOrchid" , PALETTERGB (186, 85,211)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
440 {"Gray73" , PALETTERGB (186,186,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
441 {"Grey73" , PALETTERGB (186,186,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
442 {"PaleTurquoise1" , PALETTERGB (187,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
443 {"RosyBrown" , PALETTERGB (188,143,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
444 {"LightSteelBlue2" , PALETTERGB (188,210,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
445 {"DarkOliveGreen2" , PALETTERGB (188,238,104)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
446 {"DarkKhaki" , PALETTERGB (189,183,107)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
447 {"Gray74" , PALETTERGB (189,189,189)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
448 {"Grey74" , PALETTERGB (189,189,189)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
449 {"DarkOrchid1" , PALETTERGB (191, 62,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
450 {"Gray75" , PALETTERGB (191,191,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
451 {"Grey75" , PALETTERGB (191,191,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
452 {"LightBlue1" , PALETTERGB (191,239,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
453 {"OliveDrab1" , PALETTERGB (192,255, 62)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
454 {"honeydew3" , PALETTERGB (193,205,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
455 {"azure3" , PALETTERGB (193,205,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
456 {"DarkSeaGreen1" , PALETTERGB (193,255,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
457 {"Gray76" , PALETTERGB (194,194,194)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
458 {"Grey76" , PALETTERGB (194,194,194)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
459 {"Gray77" , PALETTERGB (196,196,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
460 {"Grey77" , PALETTERGB (196,196,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
461 {"Plum" , PALETTERGB (197, 72,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
462 {"SlateGray1" , PALETTERGB (198,226,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
463 {"MediumVioletRed" , PALETTERGB (199, 21,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
464 {"Gray78" , PALETTERGB (199,199,199)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
465 {"Grey78" , PALETTERGB (199,199,199)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
466 {"Gray79" , PALETTERGB (201,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
467 {"Grey79" , PALETTERGB (201,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
468 {"LightSteelBlue1" , PALETTERGB (202,225,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
469 {"DarkOliveGreen1" , PALETTERGB (202,255,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
470 {"Gray80" , PALETTERGB (204,204,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
471 {"Grey80" , PALETTERGB (204,204,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
472 {"red3" , PALETTERGB (205, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
473 {"magenta3" , PALETTERGB (205, 0,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
474 {"DeepPink3" , PALETTERGB (205, 16,118)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
475 {"firebrick3" , PALETTERGB (205, 38, 38)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
476 {"maroon3" , PALETTERGB (205, 41,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
477 {"VioletRed3" , PALETTERGB (205, 50,120)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
478 {"brown3" , PALETTERGB (205, 51, 51)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
479 {"OrangeRed3" , PALETTERGB (205, 55, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
480 {"tomato3" , PALETTERGB (205, 79, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
481 {"IndianRed3" , PALETTERGB (205, 85, 85)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
482 {"coral3" , PALETTERGB (205, 91, 69)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
483 {"HotPink3" , PALETTERGB (205, 96,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
484 {"DarkOrange3" , PALETTERGB (205,102, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
485 {"chocolate3" , PALETTERGB (205,102, 29)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
486 {"sienna3" , PALETTERGB (205,104, 57)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
487 {"PaleVioletRed3" , PALETTERGB (205,104,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
488 {"orchid3" , PALETTERGB (205,105,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
489 {"salmon3" , PALETTERGB (205,112, 84)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
490 {"LightSalmon3" , PALETTERGB (205,129, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
491 {"orange3" , PALETTERGB (205,133, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
492 {"peru" , PALETTERGB (205,133, 63)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
493 {"tan3" , PALETTERGB (205,133, 63)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
494 {"LightPink3" , PALETTERGB (205,140,149)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
495 {"pink3" , PALETTERGB (205,145,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
496 {"DarkGoldenrod3" , PALETTERGB (205,149, 12)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
497 {"plum3" , PALETTERGB (205,150,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
498 {"goldenrod3" , PALETTERGB (205,155, 29)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
499 {"RosyBrown3" , PALETTERGB (205,155,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
500 {"burlywood3" , PALETTERGB (205,170,125)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
501 {"gold3" , PALETTERGB (205,173, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
502 {"PeachPuff3" , PALETTERGB (205,175,149)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
503 {"NavajoWhite3" , PALETTERGB (205,179,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
504 {"thistle3" , PALETTERGB (205,181,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
505 {"bisque3" , PALETTERGB (205,183,158)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
506 {"MistyRose3" , PALETTERGB (205,183,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
507 {"wheat3" , PALETTERGB (205,186,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
508 {"LightGoldenrod3" , PALETTERGB (205,190,112)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
509 {"AntiqueWhite3" , PALETTERGB (205,192,176)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
510 {"LavenderBlush3" , PALETTERGB (205,193,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
511 {"seashell3" , PALETTERGB (205,197,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
512 {"khaki3" , PALETTERGB (205,198,115)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
513 {"cornsilk3" , PALETTERGB (205,200,177)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
514 {"LemonChiffon3" , PALETTERGB (205,201,165)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
515 {"snow3" , PALETTERGB (205,201,201)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
516 {"yellow3" , PALETTERGB (205,205, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
517 {"LightYellow3" , PALETTERGB (205,205,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
518 {"ivory3" , PALETTERGB (205,205,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
519 {"Gray81" , PALETTERGB (207,207,207)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
520 {"Grey81" , PALETTERGB (207,207,207)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
521 {"VioletRed" , PALETTERGB (208, 32,144)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
522 {"MediumOrchid2" , PALETTERGB (209, 95,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
523 {"MediumGoldenrod" , PALETTERGB (209,193,102)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
524 {"Gray82" , PALETTERGB (209,209,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
525 {"Grey82" , PALETTERGB (209,209,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
526 {"LightCyan2" , PALETTERGB (209,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
527 {"chocolate" , PALETTERGB (210,105, 30)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
528 {"tan" , PALETTERGB (210,180,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
529 {"Gray83" , PALETTERGB (212,212,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
530 {"Grey83" , PALETTERGB (212,212,212)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
531 {"Gray84" , PALETTERGB (214,214,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
532 {"Grey84" , PALETTERGB (214,214,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
533 {"Thistle" , PALETTERGB (216,191,216)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
534 {"Gray85" , PALETTERGB (217,217,217)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
535 {"Grey85" , PALETTERGB (217,217,217)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
536 {"orchid" , PALETTERGB (218,112,214)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
537 {"goldenrod" , PALETTERGB (218,165, 32)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
538 {"Gold" , PALETTERGB (218,170, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
539 {"PaleVioletRed" , PALETTERGB (219,112,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
540 {"Gray86" , PALETTERGB (219,219,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
541 {"Grey86" , PALETTERGB (219,219,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
542 {"Crimson" , PALETTERGB (220, 20, 60)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
543 {"gainsboro" , PALETTERGB (220,220,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
544 {"burlywood" , PALETTERGB (222,184,135)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
545 {"Gray87" , PALETTERGB (222,222,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
546 {"Grey87" , PALETTERGB (222,222,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
547 {"MediumOrchid1" , PALETTERGB (224,102,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
548 {"Gray88" , PALETTERGB (224,224,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
549 {"Grey88" , PALETTERGB (224,224,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
550 {"honeydew2" , PALETTERGB (224,238,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
551 {"azure2" , PALETTERGB (224,238,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
552 {"LightCyan" , PALETTERGB (224,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
553 {"LightCyan1" , PALETTERGB (224,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
554 {"Gray89" , PALETTERGB (227,227,227)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
555 {"Grey89" , PALETTERGB (227,227,227)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
556 {"Gray90" , PALETTERGB (229,229,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
557 {"Grey90" , PALETTERGB (229,229,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
558 {"lavender" , PALETTERGB (230,230,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
559 {"Gray91" , PALETTERGB (232,232,232)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
560 {"Grey91" , PALETTERGB (232,232,232)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
561 {"DarkSalmon" , PALETTERGB (233,150,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
562 {"Salmon" , PALETTERGB (233,150,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
563 {"Gray92" , PALETTERGB (235,235,235)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
564 {"Grey92" , PALETTERGB (235,235,235)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
565 {"Gray93" , PALETTERGB (237,237,237)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
566 {"Grey93" , PALETTERGB (237,237,237)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
567 {"red2" , PALETTERGB (238, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
568 {"magenta2" , PALETTERGB (238, 0,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
569 {"DeepPink2" , PALETTERGB (238, 18,137)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
570 {"firebrick2" , PALETTERGB (238, 44, 44)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
571 {"maroon2" , PALETTERGB (238, 48,167)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
572 {"VioletRed2" , PALETTERGB (238, 58,140)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
573 {"brown2" , PALETTERGB (238, 59, 59)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
574 {"OrangeRed2" , PALETTERGB (238, 64, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
575 {"tomato2" , PALETTERGB (238, 92, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
576 {"IndianRed2" , PALETTERGB (238, 99, 99)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
577 {"coral2" , PALETTERGB (238,106, 80)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
578 {"HotPink2" , PALETTERGB (238,106,167)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
579 {"DarkOrange2" , PALETTERGB (238,118, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
580 {"chocolate2" , PALETTERGB (238,118, 33)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
581 {"sienna2" , PALETTERGB (238,121, 66)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
582 {"PaleVioletRed2" , PALETTERGB (238,121,159)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
583 {"orchid2" , PALETTERGB (238,122,233)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
584 {"salmon2" , PALETTERGB (238,130, 98)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
585 {"LightSalmon2" , PALETTERGB (238,149,114)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
586 {"orange2" , PALETTERGB (238,154, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
587 {"tan2" , PALETTERGB (238,154, 73)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
588 {"LightPink2" , PALETTERGB (238,162,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
589 {"pink2" , PALETTERGB (238,169,184)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
590 {"DarkGoldenrod2" , PALETTERGB (238,173, 14)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
591 {"plum2" , PALETTERGB (238,174,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
592 {"goldenrod2" , PALETTERGB (238,180, 34)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
593 {"RosyBrown2" , PALETTERGB (238,180,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
594 {"burlywood2" , PALETTERGB (238,197,145)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
595 {"gold2" , PALETTERGB (238,201, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
596 {"PeachPuff2" , PALETTERGB (238,203,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
597 {"NavajoWhite2" , PALETTERGB (238,207,161)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
598 {"thistle2" , PALETTERGB (238,210,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
599 {"bisque2" , PALETTERGB (238,213,183)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
600 {"MistyRose2" , PALETTERGB (238,213,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
601 {"wheat2" , PALETTERGB (238,216,174)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
602 {"LightGoldenrod2" , PALETTERGB (238,220,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
603 {"LightGoldenrod" , PALETTERGB (238,221,130)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
604 {"AntiqueWhite2" , PALETTERGB (238,223,204)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
605 {"LavenderBlush2" , PALETTERGB (238,224,229)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
606 {"seashell2" , PALETTERGB (238,229,222)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
607 {"khaki2" , PALETTERGB (238,230,133)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
608 {"PaleGoldenrod" , PALETTERGB (238,232,170)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
609 {"cornsilk2" , PALETTERGB (238,232,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
610 {"LemonChiffon2" , PALETTERGB (238,233,191)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
611 {"snow2" , PALETTERGB (238,233,233)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
612 {"yellow2" , PALETTERGB (238,238, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
613 {"LightYellow2" , PALETTERGB (238,238,209)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
614 {"ivory2" , PALETTERGB (238,238,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
615 {"LightCoral" , PALETTERGB (240,128,128)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
616 {"Gray94" , PALETTERGB (240,240,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
617 {"Grey94" , PALETTERGB (240,240,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
618 {"AliceBlue" , PALETTERGB (240,248,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
619 {"honeydew" , PALETTERGB (240,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
620 {"honeydew1" , PALETTERGB (240,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
621 {"azure" , PALETTERGB (240,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
622 {"azure1" , PALETTERGB (240,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
623 {"Gray95" , PALETTERGB (242,242,242)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
624 {"Grey95" , PALETTERGB (242,242,242)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
625 {"SandyBrown" , PALETTERGB (244,164, 96)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
626 {"Wheat" , PALETTERGB (245,222,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
627 {"beige" , PALETTERGB (245,245,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
628 {"Gray96" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
629 {"Grey96" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
630 {"WhiteSmoke" , PALETTERGB (245,245,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
631 {"MintCream" , PALETTERGB (245,255,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
632 {"Gray97" , PALETTERGB (247,247,247)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
633 {"Grey97" , PALETTERGB (247,247,247)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
634 {"GhostWhite" , PALETTERGB (248,248,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
635 {"AntiqueWhite" , PALETTERGB (250,235,215)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
636 {"linen" , PALETTERGB (250,240,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
637 {"LightGoldenrodYellow" , PALETTERGB (250,250,210)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
638 {"Gray98" , PALETTERGB (250,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
639 {"Grey98" , PALETTERGB (250,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
640 {"Gray99" , PALETTERGB (252,252,252)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
641 {"Grey99" , PALETTERGB (252,252,252)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
642 {"OldLace" , PALETTERGB (253,245,230)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
643 {"Red" , PALETTERGB (255, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
644 {"red1" , PALETTERGB (255, 0, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
645 {"Magenta" , PALETTERGB (255, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
646 {"magenta1" , PALETTERGB (255, 0,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
647 {"DeepPink" , PALETTERGB (255, 20,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
648 {"DeepPink1" , PALETTERGB (255, 20,147)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
649 {"firebrick1" , PALETTERGB (255, 48, 48)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
650 {"maroon1" , PALETTERGB (255, 52,179)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
651 {"VioletRed1" , PALETTERGB (255, 62,150)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
652 {"brown1" , PALETTERGB (255, 64, 64)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
653 {"OrangeRed" , PALETTERGB (255, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
654 {"OrangeRed1" , PALETTERGB (255, 69, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
655 {"tomato" , PALETTERGB (255, 99, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
656 {"tomato1" , PALETTERGB (255, 99, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
657 {"HotPink" , PALETTERGB (255,105,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
658 {"IndianRed1" , PALETTERGB (255,106,106)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
659 {"HotPink1" , PALETTERGB (255,110,180)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
660 {"Coral" , PALETTERGB (255,114, 86)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
661 {"coral1" , PALETTERGB (255,114, 86)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
662 {"DarkOrange1" , PALETTERGB (255,127, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
663 {"chocolate1" , PALETTERGB (255,127, 36)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
664 {"sienna1" , PALETTERGB (255,130, 71)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
665 {"PaleVioletRed1" , PALETTERGB (255,130,171)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
666 {"orchid1" , PALETTERGB (255,131,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
667 {"Orange" , PALETTERGB (255,135, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
668 {"DarkOrange" , PALETTERGB (255,140, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
669 {"salmon1" , PALETTERGB (255,140,105)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
670 {"LightSalmon" , PALETTERGB (255,160,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
671 {"LightSalmon1" , PALETTERGB (255,160,122)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
672 {"orange1" , PALETTERGB (255,165, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
673 {"tan1" , PALETTERGB (255,165, 79)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
674 {"LightPink1" , PALETTERGB (255,174,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
675 {"Pink" , PALETTERGB (255,181,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
676 {"pink1" , PALETTERGB (255,181,197)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
677 {"LightPink" , PALETTERGB (255,182,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
678 {"DarkGoldenrod1" , PALETTERGB (255,185, 15)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
679 {"plum1" , PALETTERGB (255,187,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
680 {"goldenrod1" , PALETTERGB (255,193, 37)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
681 {"RosyBrown1" , PALETTERGB (255,193,193)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
682 {"burlywood1" , PALETTERGB (255,211,155)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
683 {"gold1" , PALETTERGB (255,215, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
684 {"PeachPuff" , PALETTERGB (255,218,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
685 {"PeachPuff1" , PALETTERGB (255,218,185)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
686 {"NavajoWhite" , PALETTERGB (255,222,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
687 {"NavajoWhite1" , PALETTERGB (255,222,173)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
688 {"thistle1" , PALETTERGB (255,225,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
689 {"moccasin" , PALETTERGB (255,228,181)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
690 {"bisque" , PALETTERGB (255,228,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
691 {"bisque1" , PALETTERGB (255,228,196)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
692 {"MistyRose" , PALETTERGB (255,228,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
693 {"MistyRose1" , PALETTERGB (255,228,225)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
694 {"wheat1" , PALETTERGB (255,231,186)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
695 {"BlanchedAlmond" , PALETTERGB (255,235,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
696 {"LightGoldenrod1" , PALETTERGB (255,236,139)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
697 {"PapayaWhip" , PALETTERGB (255,239,213)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
698 {"AntiqueWhite1" , PALETTERGB (255,239,219)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
699 {"LavenderBlush" , PALETTERGB (255,240,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
700 {"LavenderBlush1" , PALETTERGB (255,240,245)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
701 {"seashell" , PALETTERGB (255,245,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
702 {"seashell1" , PALETTERGB (255,245,238)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
703 {"khaki1" , PALETTERGB (255,246,143)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
704 {"cornsilk" , PALETTERGB (255,248,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
705 {"cornsilk1" , PALETTERGB (255,248,220)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
706 {"LemonChiffon" , PALETTERGB (255,250,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
707 {"LemonChiffon1" , PALETTERGB (255,250,205)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
708 {"FloralWhite" , PALETTERGB (255,250,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
709 {"snow" , PALETTERGB (255,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
710 {"snow1" , PALETTERGB (255,250,250)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
711 {"Yellow" , PALETTERGB (255,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
712 {"yellow1" , PALETTERGB (255,255, 0)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
713 {"LightYellow" , PALETTERGB (255,255,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
714 {"LightYellow1" , PALETTERGB (255,255,224)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
715 {"ivory" , PALETTERGB (255,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
716 {"ivory1" , PALETTERGB (255,255,240)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
717 {"Gray100" , PALETTERGB (255,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
718 {"Grey100" , PALETTERGB (255,255,255)},
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
719 {"White" , PALETTERGB (255,255,255)}
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
720 };
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
721
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
722 static int
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
723 hexval (char c)
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
724 {
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
725 if (c >= 'a' && c <= 'f')
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
726 return c-'a' + 10;
239
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
727 else if (c >= 'A' && c <= 'Z')
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
728 return c-'A' + 10;
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
729 else
41f2f0e326e9 Import from CVS: tag r20-5b18
cvs
parents: 231
diff changeset
730 return c-'0';
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
731 }
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
732
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
733
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
734 static COLORREF
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
735 mswindows_string_to_color(CONST char *name)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
736 {
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
737 int i;
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
738 unsigned int r, g, b;
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
739
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
740 if (*name == '#')
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
741 {
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
742 /* numeric names look like "#RRGGBB" */
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
743 /* XXX accept other formats? */
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
744 if (strlen(name)!=7)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
745 return (-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
746 for (i=1; i<7; i++)
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
747 {
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
748 if (!isxdigit(name[i]))
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
749 return(-1);
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
750 }
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
751 r = hexval(name[1]) * 16 + hexval(name[2]);
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
752 g = hexval(name[3]) * 16 + hexval(name[4]);
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
753 b = hexval(name[5]) * 16 + hexval(name[6]);
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
754 return (PALETTERGB (r, g, b));
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
755 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
756 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
757 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
758 for(i=0; i<(sizeof(mswindows_X_color_map)/sizeof(colormap_t)); i++)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
759 if (!stricmp(name, mswindows_X_color_map[i].name))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
760 return (mswindows_X_color_map[i].colorref);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
761 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
762 return(-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
763 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
764
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
765 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
766 mswindows_initialize_color_instance (struct Lisp_Color_Instance *c, Lisp_Object name,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
767 Lisp_Object device, Error_behavior errb)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
768 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
769 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
770 COLORREF color;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
771
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
772 GET_C_STRING_CTEXT_DATA_ALLOCA (name, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
773 color = mswindows_string_to_color(extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
774 if (color != -1)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
775 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
776 c->data = xnew (struct mswindows_color_instance_data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
777 COLOR_INSTANCE_MSWINDOWS_COLOR (c) = color;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
778 COLOR_INSTANCE_MSWINDOWS_BRUSH (c) = CreateSolidBrush (color);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
779 return 1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
780 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
781 maybe_signal_simple_error ("unrecognized color", name, Qcolor, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
782 return(0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
783 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
784
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 243
diff changeset
785 #if 0
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
786 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
787 mswindows_mark_color_instance (struct Lisp_Color_Instance *c,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
788 void (*markobj) (Lisp_Object))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
789 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
790 }
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 243
diff changeset
791 #endif
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
792
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
793 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
794 mswindows_print_color_instance (struct Lisp_Color_Instance *c,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
795 Lisp_Object printcharfun,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
796 int escapeflag)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
797 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
798 char buf[32];
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
799 COLORREF color = COLOR_INSTANCE_MSWINDOWS_COLOR (c);
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
800 sprintf (buf, " %06ld=(%04X,%04X,%04X)", color & 0xffffff,
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 217
diff changeset
801 GetRValue(color)<<8, GetGValue(color)<<8, GetBValue(color)<<8);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
802 write_c_string (buf, printcharfun);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
803 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
804
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
805 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
806 mswindows_finalize_color_instance (struct Lisp_Color_Instance *c)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
807 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
808 if (c->data)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
809 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
810 DeleteObject (COLOR_INSTANCE_MSWINDOWS_BRUSH (c));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
811 xfree (c->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
812 c->data = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
813 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
814 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
815
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
816 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
817 mswindows_color_instance_equal (struct Lisp_Color_Instance *c1,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
818 struct Lisp_Color_Instance *c2,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
819 int depth)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
820 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
821 return (COLOR_INSTANCE_MSWINDOWS_COLOR(c1) == COLOR_INSTANCE_MSWINDOWS_COLOR(c2));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
822 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
823
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
824 static unsigned long
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
825 mswindows_color_instance_hash (struct Lisp_Color_Instance *c, int depth)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
826 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
827 return LISP_HASH (COLOR_INSTANCE_MSWINDOWS_COLOR(c));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
828 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
829
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
830 static Lisp_Object
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
831 mswindows_color_instance_rgb_components (struct Lisp_Color_Instance *c)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
832 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
833 COLORREF color = COLOR_INSTANCE_MSWINDOWS_COLOR (c);
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
834 /* This used to say GetXValue(color)<<8, but that made, e.g. white
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
835 show as (#xff00 #xff00 #xff00) instead of (#xffff #xffff #xffff).
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
836 This slightly kludgier variant gives the expected results for
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
837 black and white, while hopefully not introducing too much error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
838 return list3 (make_int (GetRValue (color) * 257),
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
839 make_int (GetGValue (color) * 257),
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
840 make_int (GetBValue (color) * 257));
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
841 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
842
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
843 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
844 mswindows_valid_color_name_p (struct device *d, Lisp_Object color)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
845 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
846 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
847
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
848 GET_C_STRING_CTEXT_DATA_ALLOCA (color, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
849 return (mswindows_string_to_color(extname)!=-1);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
850 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
851
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
852
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
853
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
854 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
855 mswindows_finalize_font_instance (struct Lisp_Font_Instance *f)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
856 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
857 if (f->data)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
858 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
859 DeleteObject(f->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
860 f->data=0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
861 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
862 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
863
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
864 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
865 mswindows_initialize_font_instance (struct Lisp_Font_Instance *f, Lisp_Object name,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
866 Lisp_Object device, Error_behavior errb)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
867 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
868 CONST char *extname;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
869 LOGFONT logfont;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
870 int fields;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
871 int pt;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
872 char fontname[LF_FACESIZE], weight[32], *style, points[8], effects[32], charset[32];
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
873
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
874 GET_C_STRING_CTEXT_DATA_ALLOCA (f->name, extname);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
875
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
876 /*
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
877 * mswindows fonts look like:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
878 * fontname[:[weight ][style][:pointsize[:effects[:charset]]]]
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
879 * The font name field shouldn't be empty.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
880 * XXX Windows will substitute a default (monospace) font if the font name
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
881 * specifies a non-existent font. We don't catch this.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
882 * effects and charset are currently ignored.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
883 *
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
884 * ie:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
885 * Lucida Console:Regular:10
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
886 * minimal:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
887 * Courier New
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
888 * maximal:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
889 * Courier New:Bold Italic:10:underline strikeout:ansi
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
890 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
891 fields = sscanf (extname, "%31[^:]:%31[^:]:%7[^:]:%31[^:]:%31s",
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
892 fontname, weight, points, effects, charset);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
893
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
894 if (fields<0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
895 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
896 maybe_signal_simple_error ("Invalid font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
897 return (0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
898 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
899
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
900 if (fields>0 && strlen(fontname))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
901 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
902 strncpy (logfont.lfFaceName, fontname, LF_FACESIZE);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
903 logfont.lfFaceName[LF_FACESIZE-1] = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
904 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
905 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
906 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
907 maybe_signal_simple_error ("Must specify a font name", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
908 return (0);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
909 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
910
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
911 if (fields > 1 && strlen(weight))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
912 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
913 char *c;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
914 /* Maybe split weight into weight and style */
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 243
diff changeset
915 if ((c=strchr(weight, ' ')))
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
916 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
917 *c = '\0';
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
918 style = c+1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
919 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
920 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
921 style = NULL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
922
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
923 /* weight: Most-often used (maybe) first */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
924 if (stricmp (weight,"regular") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
925 logfont.lfWeight = FW_REGULAR;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
926 else if (stricmp (weight,"normal") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
927 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
928 else if (stricmp (weight,"bold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
929 logfont.lfWeight = FW_BOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
930 else if (stricmp (weight,"medium") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
931 logfont.lfWeight = FW_MEDIUM;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
932 else if (stricmp (weight,"italic") == 0) /* Hack for early exit */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
933 {
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 213
diff changeset
934 logfont.lfItalic = TRUE;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
935 style=weight;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
936 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
937 /* the rest */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
938 else if (stricmp (weight,"black") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
939 logfont.lfWeight = FW_BLACK;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
940 else if (stricmp (weight,"heavy") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
941 logfont.lfWeight = FW_HEAVY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
942 else if (stricmp (weight,"ultrabold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
943 logfont.lfWeight = FW_ULTRABOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
944 else if (stricmp (weight,"extrabold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
945 logfont.lfWeight = FW_EXTRABOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
946 else if (stricmp (weight,"demibold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
947 logfont.lfWeight = FW_SEMIBOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
948 else if (stricmp (weight,"semibold") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
949 logfont.lfWeight = FW_SEMIBOLD;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
950 else if (stricmp (weight,"light") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
951 logfont.lfWeight = FW_LIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
952 else if (stricmp (weight,"ultralight") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
953 logfont.lfWeight = FW_ULTRALIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
954 else if (stricmp (weight,"extralight") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
955 logfont.lfWeight = FW_EXTRALIGHT;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
956 else if (stricmp (weight,"thin") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
957 logfont.lfWeight = FW_THIN;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
958 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
959 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
960 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
961 if (!style)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
962 style = weight; /* May have specified a style without a weight */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
963 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
964 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
965 maybe_signal_simple_error ("Invalid font weight", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
966 return (0); /* Invalid weight */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
967 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
968 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
969
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
970 if (style)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
971 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
972 /* XXX what about oblique? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
973 if (stricmp (style,"italic") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
974 logfont.lfItalic = TRUE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
975 else if (stricmp (style,"roman") == 0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
976 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
977 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
978 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
979 maybe_signal_simple_error ("Invalid font weight or style", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
980 return (0); /* Invalid weight or style */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
981 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
982 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
983 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
984 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
985 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
986 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
987
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
988 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
989 else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
990 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
991 logfont.lfWeight = FW_NORMAL;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
992 logfont.lfItalic = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
993 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
994
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
995 /* XXX Should we reject strings that don't specify a size? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
996 if (fields < 3 || !strlen(points) || (pt=atoi(points))==0)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
997 pt = 10;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
998
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
999 /* Formula for pointsize->height from LOGFONT docs in MSVC5 Platform SDK */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1000 logfont.lfHeight = -MulDiv(pt, DEVICE_MSWINDOWS_LOGPIXELSY(XDEVICE (device)), 72);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1001 logfont.lfWidth = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1002
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1003 /* Default to monospaced if the specified font name is not found */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1004 logfont.lfPitchAndFamily = FF_MODERN;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1005
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1006 /* XXX: FIXME? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1007 logfont.lfUnderline = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1008 logfont.lfStrikeOut = FALSE;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1009
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1010 /* XXX: FIXME: we ignore charset */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1011 logfont.lfCharSet = DEFAULT_CHARSET;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1012
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1013 /* Misc crud */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1014 logfont.lfEscapement = logfont.lfOrientation = 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1015 #if 1
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1016 logfont.lfOutPrecision = OUT_DEFAULT_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1017 logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1018 logfont.lfQuality = DEFAULT_QUALITY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1019 #else
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1020 logfont.lfOutPrecision = OUT_STROKE_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1021 logfont.lfClipPrecision = CLIP_STROKE_PRECIS;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1022 logfont.lfQuality = PROOF_QUALITY;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1023 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1024
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1025 if ((f->data = CreateFontIndirect(&logfont)) == NULL)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1026 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1027 maybe_signal_simple_error ("Couldn't create font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1028 return 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1029 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1030
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1031 /* Have to apply Font to a GC to get its values.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1032 * We'll borrow the desktop window becuase its the only window that we
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1033 * know about that is guaranteed to exist when this gets called
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1034 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1035 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1036 HWND hwnd;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1037 HDC hdc;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1038 HFONT holdfont;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1039 TEXTMETRIC metrics;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1040
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1041 hwnd = GetDesktopWindow();
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1042 assert(hdc = GetDC(hwnd)); /* XXX FIXME: can this temporarily fail? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1043 holdfont = SelectObject(hdc, f->data);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1044 if (!holdfont)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1045 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1046 mswindows_finalize_font_instance (f);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1047 maybe_signal_simple_error ("Couldn't map font", f->name, Qfont, errb);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1048 return 0;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1049 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1050 GetTextMetrics(hdc, &metrics);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1051 SelectObject(hdc, holdfont);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1052 ReleaseDC(hwnd, hdc);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1053 f->width = metrics.tmAveCharWidth;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1054 f->height = metrics.tmHeight;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1055 f->ascent = metrics.tmAscent;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1056 f->descent = metrics.tmDescent;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1057 f->proportional_p = (metrics.tmPitchAndFamily & TMPF_FIXED_PITCH);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1058 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1059
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1060 return 1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1061 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1062
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 243
diff changeset
1063 #if 0
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1064 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1065 mswindows_mark_font_instance (struct Lisp_Font_Instance *f,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1066 void (*markobj) (Lisp_Object))
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1067 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1068 }
245
51092a27c943 Import from CVS: tag r20-5b21
cvs
parents: 243
diff changeset
1069 #endif
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1070
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1071 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1072 mswindows_print_font_instance (struct Lisp_Font_Instance *f,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1073 Lisp_Object printcharfun,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1074 int escapeflag)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1075 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1076 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1077
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1078 static Lisp_Object
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1079 mswindows_list_fonts (Lisp_Object pattern, Lisp_Object device)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1080 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1081 /* XXX Implement me */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1082 return list1 (build_string ("Courier New:Regular:10"));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1083 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1084
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1085
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1086
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1087 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1088 /* initialization */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1089 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1090
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1091 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1092 syms_of_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1093 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1094 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1095
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1096 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1097 console_type_create_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1098 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1099 /* object methods */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1100 CONSOLE_HAS_METHOD (mswindows, initialize_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1101 /* CONSOLE_HAS_METHOD (mswindows, mark_color_instance); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1102 CONSOLE_HAS_METHOD (mswindows, print_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1103 CONSOLE_HAS_METHOD (mswindows, finalize_color_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1104 CONSOLE_HAS_METHOD (mswindows, color_instance_equal);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1105 CONSOLE_HAS_METHOD (mswindows, color_instance_hash);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1106 CONSOLE_HAS_METHOD (mswindows, color_instance_rgb_components);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1107 CONSOLE_HAS_METHOD (mswindows, valid_color_name_p);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1108
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1109 CONSOLE_HAS_METHOD (mswindows, initialize_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1110 /* CONSOLE_HAS_METHOD (mswindows, mark_font_instance); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1111 CONSOLE_HAS_METHOD (mswindows, print_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1112 CONSOLE_HAS_METHOD (mswindows, finalize_font_instance);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1113 /* CONSOLE_HAS_METHOD (mswindows, font_instance_truename); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1114 CONSOLE_HAS_METHOD (mswindows, list_fonts);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1115 #ifdef MULE
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1116 CONSOLE_HAS_METHOD (mswindows, font_spec_matches_charset);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1117 CONSOLE_HAS_METHOD (mswindows, find_charset_font);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1118 #endif
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1119 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1120
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1121 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1122 vars_of_objects_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1123 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1124 }