pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:2193:    l++; s++; la++; sa++; da++; d++;    }    pop_stack();    }    }    else    {    int v = (int)(COLORMAX*alpha);    if (!la) /* no layer alpha => full opaque */    { -  unsigned char *rnd +  unsigned char *rnd;    push_random_string(len);    rnd = (unsigned char*)Pike_sp[-1].u.string->str;    while (len--)    {    if (rnd[len] < (unsigned)v)    *d=*l,*da=white;    else    *d=*s,*da=*sa;    l++; s++; sa++; da++; d++;    }