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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.59 2000/12/05 21:08:25 per Exp $ + **! $Id: layers.c,v 1.60 2000/12/27 12:03:02 mirar Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes">   **! <dl compact>   **! <dt><i>The variables in the expression:</i>   **! <dt>L<dd><i>The active layer</i>
pike.git/src/modules/Image/layers.c:208:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.59 2000/12/05 21:08:25 per Exp $"); + RCSID("$Id: layers.c,v 1.60 2000/12/27 12:03:02 mirar Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:2250:      static INLINE void img_lay_stroke(struct layer *ly,    rgb_group *l,    rgb_group *la,    rgb_group *s,    rgb_group *sa,    rgb_group *d,    rgb_group *da,    int len)   { +  if (len<0) Pike_error("internal error: stroke len < 0\n"); +     if (ly->row_func==(lm_row_func*)lm_spec_burn_alpha)    {    lm_spec_burn_alpha(ly,l,la,s,sa,d,da,len);    return;    }       if (l)    {    (ly->row_func)(s,l,d,sa,la,da,len,ly->alpha_value);    return;