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

version» Context lines:

pike.git/src/modules/Image/font.c:1:   #include <config.h>    - /* $Id: font.c,v 1.2 1997/03/09 13:45:55 grubba Exp $ */ + /* $Id: font.c,v 1.3 1997/03/12 12:19:25 hubbe Exp $ */      #include "global.h"      #include <sys/types.h>   #include <sys/stat.h>      #ifdef HAVE_FCNTL_H   #include <fcntl.h>   #endif   
pike.git/src/modules/Image/font.c:360:    maxwidth = xsize + THIS->charinfo[c].width;    xsize+=(signed long)((float)THIS->charinfo[c].spacing    *(float)THIS->xspacing_scale);    }    }    if (xsize>maxwidth) maxwidth=xsize;    width_of[j]=maxwidth;    if (maxwidth>maxwidth2) maxwidth2=maxwidth;    }    -  o = clone(image_program,0); +  o = clone_object(image_program,0);    img = ((struct image*)o->storage);    img->xsize = maxwidth2;    if(args>1)    img->ysize = THIS->height+((double)THIS->height*(double)(args-1)*(double)THIS->yspacing_scale)+1;    else    img->ysize = THIS->height+1;    img->rgb.r=img->rgb.g=img->rgb.b=255;    img->img=malloc(img->xsize*img->ysize*sizeof(rgb_group));       if (!img) { free_object(o); free(width_of); error("Out of memory\n"); }