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.86 2003/06/08 06:37:27 mirar Exp $ + || $Id: layers.c,v 1.87 2003/07/03 18:14:39 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.86 2003/06/08 06:37:27 mirar Exp $"); + RCSID("$Id: layers.c,v 1.87 2003/07/03 18:14:39 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:1244:   **! Set/query layer offset.   **!   **! method int xsize()   **! method int ysize()   **! Query layer offset. This is the same as layer   **! image/alpha image size.   */      static void image_layer_set_offset(INT32 args)   { -  get_all_args("Image.Layer->set_offset",args,"%i%i", +  get_all_args("Image.Layer->set_offset",args,"%d%d", /* INT32! */    &(THIS->xoffs),&(THIS->yoffs));    pop_n_elems(args);    ref_push_object(THISOBJ);   }      static void image_layer_xoffset(INT32 args)   {    pop_n_elems(args);    push_int(THIS->xoffs);   }
pike.git/src/modules/Image/layers.c:1407:    try_parameter_pair("fill","fill_alpha",image_layer_set_fill);    try_parameter("tiled",image_layer_set_tiled);    pop_stack();    return;    }    else if (Pike_sp[-args].type==T_INT && args>1    && Pike_sp[1-args].type==T_INT)    {    rgb_group col=black,alpha=white;    -  get_all_args("Image.Layer",args,"%i%i",&(THIS->xsize),&(THIS->ysize)); +  get_all_args("Image.Layer",args,"%d%d", /* watch the type: INT32 */ +  &(THIS->xsize),&(THIS->ysize));    if (args>2)    if (!image_color_arg(2-args,&col))    SIMPLE_BAD_ARG_ERROR("Image.Layer",3,"Image.Color");       if (args>3)    if (!image_color_arg(3-args,&alpha))    SIMPLE_BAD_ARG_ERROR("Image.Layer",4,"Image.Color");       push_int(THIS->xsize);    push_int(THIS->ysize);