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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: layers.c,v 1.83 2002/12/09 22:43:27 mirar Exp $ + || $Id: layers.c,v 1.84 2003/01/27 11:59:14 mirar Exp $   */      /*   **! module Image   **! class Layer   **! see also: layers   **!      **!   **!
pike.git/src/modules/Image/layers.c:194:   **! return 0;   **! }   **!   **! </execute>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.83 2002/12/09 22:43:27 mirar Exp $"); + RCSID("$Id: layers.c,v 1.84 2003/01/27 11:59:14 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:3106:    push_int(yz+yi-1);    push_int(THIS->fill.r);    push_int(THIS->fill.g);    push_int(THIS->fill.b);    f_call_function(8);    if (Pike_sp[-1].type!=T_OBJECT ||    !(img=(struct image*)get_storage(Pike_sp[-1].u.object,image_program)))    Pike_error("No image returned from image->copy\n");    if (img->xsize!=xz || img->ysize!=yz)    Pike_error("Image returned from image->copy had " -  "unexpected size (%d,%d, expected %d,%d)\n", -  img->xsize,img->ysize,(INT32)xz,(INT32)yz); +  "unexpected size (%"PRINTPIKEINT"d,%"PRINTPIKEINT"d," +  " expected %"PRINTPIKEINT"d,%"PRINTPIKEINT"d)\n", +  img->xsize,img->ysize,xz,yz);       free_object(l->image);    l->image=Pike_sp[-1].u.object;    Pike_sp--;    dmalloc_touch_svalue(Pike_sp);    l->img=img;    }       if (zot && l->alpha)    {
pike.git/src/modules/Image/layers.c:3134:    push_int(yz+yi-1);    push_int(THIS->fill_alpha.r);    push_int(THIS->fill_alpha.g);    push_int(THIS->fill_alpha.b);    f_call_function(8);    if (Pike_sp[-1].type!=T_OBJECT ||    !(img=(struct image*)get_storage(Pike_sp[-1].u.object,image_program)))    Pike_error("No image returned from alpha->copy\n");    if (img->xsize!=xz || img->ysize!=yz)    Pike_error("Image returned from alpha->copy had " -  "unexpected size (%d,%d, expected %d,%d)\n", -  img->xsize,img->ysize,(INT32)xz,(INT32)yz); +  "unexpected size (%"PRINTPIKEINT"d,%"PRINTPIKEINT"d, " +  "expected %"PRINTPIKEINT"d,%"PRINTPIKEINT"d)\n", +  img->xsize,img->ysize,xz,yz);    free_object(l->alpha);    l->alpha=Pike_sp[-1].u.object;    Pike_sp--;    dmalloc_touch_svalue(Pike_sp);    l->alp=img;    }       l->xoffs=x;    l->yoffs=y;    l->xsize=xz;