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

version» Context lines:

pike.git/src/modules/Image/blit.c:555:   void image_paste_alpha_color(INT32 args)   {    struct image *mask = NULL;    INT32 x1,y1,x,y,x2,y2;    rgb_group rgb,*d,*m;    INT32 mmod,dmod;    double q;    int arg=1;       if (args<1) -  SIMPLE_TOO_FEW_ARGS_ERROR("image->paste_alpha_color",1); +  SIMPLE_WRONG_NUM_ARGS_ERROR("image->paste_alpha_color",1);    if (TYPEOF(sp[-args]) != T_OBJECT    || !sp[-args].u.object    || !(mask=get_storage(sp[-args].u.object,image_program)))    bad_arg_error("paste_alpha_color",sp-args,args,1,"",sp+1-1-args,    "Bad argument 1 to paste_alpha_color.\n");    if (!THIS->img) return;    if (!mask->img) return;       if (args==6 || args==4 || args==2 || args==3) /* color at arg 2.. */    arg=1+getrgb(THIS,1,args,3,"image->paste_alpha_color()\n");