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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.44 2000/08/09 11:26:49 grubba Exp $ */ + /* $Id: blit.c,v 1.45 2000/08/10 09:51:53 per Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.44 2000/08/09 11:26:49 grubba Exp $ + **! $Id: blit.c,v 1.45 2000/08/10 09:51:53 per 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:452:   **! 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;    INT32 x1,y1,x,y,x2,y2,smod,dmod,mmod;    rgb_group *s,*d,*m; -  float q; +  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)))    bad_arg_error("image->paste_mask",sp-args,args,1,"",sp+1-1-args,    "Bad argument 1 to image->paste_mask()\n");    if (sp[1-args].type!=T_OBJECT
pike.git/src/modules/Image/blit.c:558:   **!   **! see also: paste_mask, paste_alpha, paste_alpha_color   */      void image_paste_alpha_color(INT32 args)   {    struct image *mask;    INT32 x1,y1,x,y,x2,y2;    rgb_group rgb,*d,*m;    INT32 mmod,dmod; -  float q; +  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    || !(mask=(struct image*)get_storage(sp[-args].u.object,image_program)))    bad_arg_error("image->paste_alpha_color",sp-args,args,1,"",sp+1-1-args,    "Bad argument 1 to image->paste_alpha_color()\n");    if (!THIS->img) return;