Subversion Repositories wimsdev

Rev

Rev 8896 | Rev 11120 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8896 Rev 8897
Line 78... Line 78...
78
    if(n<1) return;
78
    if(n<1) return;
79
    for(i=1,pp=strchr(p,','); i<n && pp!=NULL; i++,pp=strchr(pp+1,','));
79
    for(i=1,pp=strchr(p,','); i<n && pp!=NULL; i++,pp=strchr(pp+1,','));
80
    if(pp==NULL) *p=0;
80
    if(pp==NULL) *p=0;
81
    else ovlstrcpy(p,pp+1);
81
    else ovlstrcpy(p,pp+1);
82
}
82
}
83
 
-
 
-
 
83
/* same in Texgif/image.c */
84
int getcolor(int r, int g, int b)
84
int getcolor(int r, int g, int b)
85
{
85
{
86
    int col;
86
    int col;
87
    if(r>255) r=255; if(r<0) r=0;
87
    if(r>255) r=255; if(r<0) r=0;
88
    if(g>255) g=255; if(g<0) g=0;
88
    if(g>255) g=255; if(g<0) g=0;