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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.46 2000/08/11 18:46:35 grubba Exp $ */ + /* $Id: blit.c,v 1.47 2000/08/15 12:40:57 grubba Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.46 2000/08/11 18:46:35 grubba Exp $ + **! $Id: blit.c,v 1.47 2000/08/15 12:40:57 grubba Exp $   **! 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:365:   **! alpha channel value   **! arg int x   **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste_mask, paste, paste_alpha_color   */      void image_paste_alpha(INT32 args)   { -  struct image *img; +  struct image *img = NULL;    INT32 x1,y1;       if (args<2    || sp[-args].type!=T_OBJECT    || !sp[-args].u.object    || !(img=(struct image*)get_storage(sp[-args].u.object,image_program))    || sp[1-args].type!=T_INT)    bad_arg_error("image->paste_alpha",sp-args,args,0,"",sp-args,    "Bad arguments to image->paste_alpha()\n");    if (!THIS->img) return;
pike.git/src/modules/Image/blit.c:450:   **! mask image   **! arg int x   **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste, paste_alpha, paste_alpha_color   */      void image_paste_mask(INT32 args)   { -  struct image *img,*mask; +  struct image *img = NULL, *mask = NULL;    INT32 x1,y1,x,y,x2,y2,smod,dmod,mmod;    rgb_group *s,*d,*m;    double q;      CHRONO("image_paste_mask init");       if (args<2)    error("illegal number of arguments to image->paste_mask()\n");    if (sp[-args].type!=T_OBJECT    || !(img=(struct image*)get_storage(sp[-args].u.object,image_program)))
pike.git/src/modules/Image/blit.c:555:   **! what color to paint with; default is current   **! arg int x   **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste_mask, paste_alpha, paste_alpha_color   */      void image_paste_alpha_color(INT32 args)   { -  struct image *mask; +  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);    if (sp[-args].type!=T_OBJECT    || !sp[-args].u.object