Rev 7076 | Rev 8195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7076 | Rev 8103 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | * along with this program; if not, write to the Free Software |
14 | * along with this program; if not, write to the Free Software |
15 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
15 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | */ |
16 | */ |
17 | 17 | ||
18 | /* tex 2 gif translator, image manipulating routines */ |
18 | /* tex 2 gif translator, image manipulating routines */ |
- | 19 | #include "texgif.h" |
|
19 | 20 | ||
20 | gdImagePtr image=NULL; |
21 | gdImagePtr image=NULL; |
21 | int color_white, color_black, color_bounder; |
22 | int color_white, color_black, color_bounder; |
22 | 23 | ||
23 | int getcolor(int r, int g, int b) |
24 | int getcolor(int r, int g, int b) |
Line 89... | Line 90... | ||
89 | /* Make color according to string indication */ |
90 | /* Make color according to string indication */ |
90 | void makecolor(char *p) |
91 | void makecolor(char *p) |
91 | { |
92 | { |
92 | int t, r,g,b; |
93 | int t, r,g,b; |
93 | char *p2; |
94 | char *p2; |
94 | 95 | ||
95 | p=find_word_start(p); r=g=b=0; |
96 | p=find_word_start(p); r=g=b=0; |
96 | p2=strchr(p,','); |
97 | p2=strchr(p,','); |
97 | if(p2==NULL) { /* color name */ |
98 | if(p2==NULL) { /* color name */ |
98 | *find_word_end(p)=0; |
99 | *find_word_end(p)=0; |
99 | t=search_list(colors,colorno,sizeof(colors[0]),p); |
100 | t=search_list(colors,colorno,sizeof(colors[0]),p); |