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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.12 1997/09/05 22:18:42 per Exp $ */ + /* $Id: blit.c,v 1.13 1997/09/10 20:16:36 grubba Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.12 1997/09/05 22:18:42 per Exp $<br> + **! $Id: blit.c,v 1.13 1997/09/10 20:16:36 grubba Exp $<br>   **! class image   */      #include <math.h>   #include <ctype.h>      #include "stralloc.h"   #include "global.h"   #include "pike_macros.h"   #include "object.h"
pike.git/src/modules/Image/blit.c:539:    {    if (sp[4-args].type!=T_INT    || sp[5-args].type!=T_INT)    error("illegal coordinate arguments to image->paste_alpha_color()\n");    x1=sp[4-args].u.integer;    y1=sp[5-args].u.integer;    }    else x1=y1=0;       mask=(struct image*)sp[-args].u.object->storage; -  if (!mask||!mask->img) error("argument 2 (alpha) has no image\n"); +  if (!mask||!mask->img) error("argument 1 (alpha) has no image\n");       x2=min(THIS->xsize-x1,mask->xsize);    y2=min(THIS->ysize-y1,mask->ysize);      CHRONO("image_paste_alpha_color begin");       m=mask->img+max(0,-x1)+max(0,-y1)*mask->xsize;    d=THIS->img+max(0,-x1)+x1+(y1+max(0,-y1))*THIS->xsize;    x=max(0,-x1);    mmod=mask->xsize-(x2-x);