Mercurial > mplayer.hg
annotate gui/mplayer/pixmaps/skin.xpm @ 32979:4905f5a87357
Replace some awkward and unnecessary usages of strlen().
1. A string length of zero or greater than zero can be determined by checking
the first byte.
2. Leave it to strdup() to determine the length and to do allocation for a
string that is to be copied.
3. If neither the string length nor the index variable is altered in a loop,
string[index] (!= 0) is the condition to go with.
author | ib |
---|---|
date | Thu, 10 Mar 2011 14:20:36 +0000 |
parents | 09c3ce60f369 |
children |
rev | line source |
---|---|
23077 | 1 /* XPM */ |
25715
09c3ce60f369
Make xpm arrays really const (I missed that they are not strings but
reimar
parents:
23077
diff
changeset
|
2 static const char * const skin_xpm[] = { |
23077 | 3 "16 16 162 2", |
4 " c None", | |
5 ". c #DBA97F", | |
6 "+ c #C7A89B", | |
7 "@ c #E1DFDD", | |
8 "# c #BE9D76", | |
9 "$ c #A35019", | |
10 "% c #A8978C", | |
11 "& c #D3D2D0", | |
12 "* c #DAD8D7", | |
13 "= c #D9D6D4", | |
14 "- c #BEBCB9", | |
15 "; c #BCAA95", | |
16 "> c #D78236", | |
17 ", c #844A36", | |
18 "' c #DADFE4", | |
19 ") c #E0E8E8", | |
20 "! c #C8D2D3", | |
21 "~ c #B5B7B7", | |
22 "{ c #DCDAD7", | |
23 "] c #BBB7B0", | |
24 "^ c #CCCACB", | |
25 "/ c #D2D0D3", | |
26 "( c #EDAF6C", | |
27 "_ c #953600", | |
28 ": c #28257E", | |
29 "< c #A1B4F3", | |
30 "[ c #F5B7AC", | |
31 "} c #F4A296", | |
32 "| c #E5E7EB", | |
33 "1 c #ABB1B6", | |
34 "2 c #C8C4C0", | |
35 "3 c #CECBC5", | |
36 "4 c #F7F7F9", | |
37 "5 c #53548A", | |
38 "6 c #967265", | |
39 "7 c #DE741B", | |
40 "8 c #6F3937", | |
41 "9 c #4155C2", | |
42 "0 c #A8BAEB", | |
43 "a c #E65138", | |
44 "b c #DD0C00", | |
45 "c c #F1D2D5", | |
46 "d c #BECFD8", | |
47 "e c #B5BABE", | |
48 "f c #C2BEB9", | |
49 "g c #E9E7E5", | |
50 "h c #FFFFFF", | |
51 "i c #F9FBFF", | |
52 "j c #71667C", | |
53 "k c #E49146", | |
54 "l c #9D3501", | |
55 "m c #BFB7BD", | |
56 "n c #E5F6FE", | |
57 "o c #DCF0FF", | |
58 "p c #D7B2BD", | |
59 "q c #D18F98", | |
60 "r c #D0DCF6", | |
61 "s c #D8E5F1", | |
62 "t c #9DA4A7", | |
63 "u c #CECBC6", | |
64 "v c #EAE8E6", | |
65 "w c #9F9EA3", | |
66 "x c #444349", | |
67 "y c #C3C4C7", | |
68 "z c #E7BD90", | |
69 "A c #CD5A0B", | |
70 "B c #946454", | |
71 "C c #E7F9FF", | |
72 "D c #DFF1FF", | |
73 "E c #D8EAFF", | |
74 "F c #AFE5E5", | |
75 "G c #3ACB52", | |
76 "H c #6BCE85", | |
77 "I c #DBE7FB", | |
78 "J c #9DA2A9", | |
79 "K c #B9B4AF", | |
80 "L c #636167", | |
81 "M c #000004", | |
82 "N c #8B7E74", | |
83 "O c #EF9853", | |
84 "P c #913710", | |
85 "Q c #CDD6DF", | |
86 "R c #E1F5FF", | |
87 "S c #D2E9FF", | |
88 "T c #CFE6FF", | |
89 "U c #97D6CA", | |
90 "V c #03B200", | |
91 "W c #44C54A", | |
92 "X c #CCDAEF", | |
93 "Y c #9DA5AF", | |
94 "Z c #BBB6B1", | |
95 "` c #E7E7E8", | |
96 " . c #BBC1CC", | |
97 ".. c #D3B59C", | |
98 "+. c #AF4E1E", | |
99 "@. c #B1A3A5", | |
100 "#. c #E4FBFF", | |
101 "$. c #D4ECFF", | |
102 "%. c #CAE5FF", | |
103 "&. c #C5E1F2", | |
104 "*. c #B7DAE7", | |
105 "=. c #86CCC7", | |
106 "-. c #B3E3E5", | |
107 ";. c #A7B6C5", | |
108 ">. c #BAC1C8", | |
109 ",. c #BFBBB6", | |
110 "'. c #E6E5E3", | |
111 "). c #F5E9CC", | |
112 "!. c #BC9877", | |
113 "~. c #987977", | |
114 "{. c #B3BDC4", | |
115 "]. c #A8AEB3", | |
116 "^. c #B0C0D0", | |
117 "/. c #BCDAF3", | |
118 "(. c #DCD443", | |
119 "_. c #E5D620", | |
120 ":. c #BFDCF1", | |
121 "<. c #C1D6F7", | |
122 "[. c #A7B0B9", | |
123 "}. c #C7C6C3", | |
124 "|. c #ABA194", | |
125 "1. c #CDA447", | |
126 "2. c #8E4B00", | |
127 "3. c #958685", | |
128 "4. c #D9DADA", | |
129 "5. c #E1E0E0", | |
130 "6. c #A4A5A7", | |
131 "7. c #8FA6BC", | |
132 "8. c #D1CD44", | |
133 "9. c #F3E538", | |
134 "0. c #C6D9DB", | |
135 "a. c #9DABBC", | |
136 "b. c #B0A08A", | |
137 "c. c #9C7A32", | |
138 "d. c #6A380E", | |
139 "e. c #989DA6", | |
140 "f. c #8E9296", | |
141 "g. c #8D9196", | |
142 "h. c #92A7B9", | |
143 "i. c #AFD5FC", | |
144 "j. c #BFDFF2", | |
145 "k. c #B0C3CA", | |
146 "l. c #A1ADB7", | |
147 "m. c #C9C1B8", | |
148 "n. c #8D6841", | |
149 "o. c #6C4C2C", | |
150 "p. c #7E7267", | |
151 "q. c #A1ACB7", | |
152 "r. c #BFD5EA", | |
153 "s. c #BEDBF5", | |
154 "t. c #BEDDFA", | |
155 "u. c #AFC6DA", | |
156 "v. c #97A5B3", | |
157 "w. c #BDC4C9", | |
158 "x. c #D8D5D0", | |
159 "y. c #BDB7AF", | |
160 "z. c #DDDBD8", | |
161 "A. c #BDC2C7", | |
162 "B. c #A0A7AD", | |
163 "C. c #9DA6AD", | |
164 "D. c #A0A9B1", | |
165 "E. c #C2C6CB", | |
166 " ", | |
167 " . + ", | |
168 " @ # $ % & * ", | |
169 " = - ; > , ' ) ! ~ ", | |
170 " { ] ^ / ( _ : < [ } | 1 ", | |
171 " 2 3 4 5 6 7 8 9 0 a b c d e ", | |
172 " f g h i j k l m n o p q r s t ", | |
173 "u v w x y z A B C D E F G H I J ", | |
174 "K h L M N O P Q R S T U V W X Y ", | |
175 "Z h ` ...+.@.#.$.%.&.*.=.-.;.>.", | |
176 ",.'.h ).!.~.{.].^./.(._.:.<.[. ", | |
177 " }.|.1.2.3.4.5.6.7.8.9.0.a. ", | |
178 " b.c.d.e.f.g.h.i.j.k.l. ", | |
179 " m.n.o.p.q.r.s.t.u.v.w. ", | |
180 " x.y.z. A.B.C.D.E. ", | |
181 " "}; |