Branch: Tag:

2015-11-15

2015-11-15 00:34:36 by Martin Nilsson <nilsson@fastmail.com>

Moved the range limiting of random numbers into my_rand(64).

2223:    else    while (len--)    { -  if ((my_rand()%(255*255)) < +  if (my_rand(255*255) <    (unsigned)(la->r*87 + la->g*127 + la->b*41))    *d=*l,*da=white;    else
2237:    if (!la) /* no layer alpha => full opaque */    while (len--)    { -  if ((my_rand()&255) < (unsigned)v) +  if (my_rand(256) < (unsigned)v)    *d=*l,*da=white;    else    *d=*s,*da=*sa;
2247:    {    while (len--)    { -  if ((my_rand()%(255*255)) < +  if (my_rand(255*255) <    (unsigned)((la->r*87 + la->g*127 + la->b*41)>>8)*v)    *d=*l,*da=white;    else