Mercurial > mplayer.hg
annotate gui/mplayer/pixmaps/pause.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 pause_xpm[] = { |
23077 | 3 "16 16 29 1", |
4 " c None", | |
5 ". c #000000", | |
6 "+ c #FFFFFF", | |
7 "@ c #737372", | |
8 "# c #848483", | |
9 "$ c #888887", | |
10 "% c #7E7E7D", | |
11 "& c #A8A7A6", | |
12 "* c #A4A4A3", | |
13 "= c #A6A5A4", | |
14 "- c #B5B4B3", | |
15 "; c #858483", | |
16 "> c #AAA9A7", | |
17 ", c #C0BFBE", | |
18 "' c #91908E", | |
19 ") c #AFAEAC", | |
20 "! c #CACAC8", | |
21 "~ c #A6A5A2", | |
22 "{ c #BBBAB7", | |
23 "] c #D4D3D2", | |
24 "^ c #AEADA9", | |
25 "/ c #BFBDBA", | |
26 "( c #D7D5D3", | |
27 "_ c #B2B0AD", | |
28 ": c #C3C1BE", | |
29 "< c #D9D8D6", | |
30 "[ c #B5B3B0", | |
31 "} c #D1CFCC", | |
32 "| c #DEDDDB", | |
33 " ", | |
34 " .....+.....+ ", | |
35 " .@#$.+.@#$.+ ", | |
36 " .%&*.+.%&*.+ ", | |
37 " .%=-.+.%=-.+ ", | |
38 " .;>,.+.;>,.+ ", | |
39 " .')!.+.')!.+ ", | |
40 " .')!.+.')!.+ ", | |
41 " .')!.+.')!.+ ", | |
42 " .~{].+.~{].+ ", | |
43 " .~{].+.~{].+ ", | |
44 " .^/(.+.^/(.+ ", | |
45 " ._:<.+._:<.+ ", | |
46 " .[}|.+.[}|.+ ", | |
47 " .....+.....+ ", | |
48 " +++++ +++++ "}; |