Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.34 1997/02/27 04:09:04 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.35 1997/02/27 04:14:02 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";      import Image;      array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",
Roxen.git/server/modules/graphics/graphic_text.pike:309:    }       if(args->shadow)    {    xsize+=((int)(args->shadow/",")[-1])+2;    ysize+=((int)(args->shadow/",")[-1])+2;    }       if(args->bshadow)    { -  xsize+=(int)args->bshadow+4; -  ysize+=(int)args->bshadow+4; +  xsize+=(int)args->bshadow+3; +  ysize+=(int)args->bshadow+3;    }       if(args->move)    {    int dx,dy;    sscanf(args->move, "%d,%d", dx, dy);    xoffset += dx;    yoffset += dy;    }   
Roxen.git/server/modules/graphics/graphic_text.pike:436:    object ta = text_alpha->copy();    ta = ta->color(256-sd,256-sd,256-sd);    background->paste_mask(image(txsize,tysize),ta,xoffset+sdist, yoffset+sdist);    }      #define MIN(x,y) ((x)<(y)?(x):(y))       if(args->bshadow)    {    int sdist = (int)(args->bshadow)+1; -  object ta = image(text_alpha->xsize()+sdist*2+4, -  text_alpha->ysize()+sdist*2+4); +  int xs,ys; +  xs = text_alpha->xsize()+sdist*2+4; +  ys = text_alpha->ysize()+sdist*2+4; +  object ta = image(xs,ys);    ta->paste(text_alpha,sdist,sdist);    ta = blur(ta, MIN((sdist/2),1))->color(256,256,256); -  background->paste_mask(image(txsize,tysize),ta,xoffset, yoffset); +  background->paste_mask(image(xs,ys),ta,xoffset, yoffset);    }       if(args->glow)    {    int amnt = (int)(args->glow/",")[-1]+2;    array (int) blurc = parse_color((args->glow/",")[0]);    background->paste_mask(image(txsize+amnt*2,tysize*2, @blurc),    blur(text_alpha, amnt),    xoffset-amnt, yoffset-amnt);    }