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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.178 1999/05/25 10:45:55 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.179 1999/05/25 10:53:22 per Exp $";   constant thread_safe=1;      #include <config.h>   #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0
Roxen.git/server/modules/graphics/graphic_text.pike:369:       // upper left -- lower left    background->line(b,b, b, ysize-b-1);    // upper right -- lower right    background->line(xsize-b-1,b, xsize-b-1, ysize-b-1);    }    }       background->setcolor(@bgcolor);    -  if(args->size || args->xsize || args->ysize) -  { +     int xs=background->xsize(), ys=background->ysize(); -  +  +  if( args->rescale ) +  { +  xs = txsize; +  ys = tysize; +  } +     if(args->size) { xs=(int)args->size; ys=(int)(args->size/",")[-1]; }    if(args->xsize) xs=(int)args->xsize;    if(args->ysize) ys=(int)args->ysize; -  +  +  +  if( xs != background->xsize() && +  ys != background->ysize() ) +  {    if(!args->rescale)    background = background->copy(0,0,xs-1,ys-1);    else    background = background->scale(xs, ys);    }       if(args->turbulence)    {    array (float|array(int)) arg=({});    foreach((args->turbulence/";"), string s)
Roxen.git/server/modules/graphics/graphic_text.pike:821:    contents = parse_rxml(contents, id, foo, defines);   #else    contents = parse_rxml(contents, id, foo);   #endif       string lp, url, ea;    string pre, post, defalign, gt, rest, magic;    int i;    string split;    -  contents = contents[..((int)arg->maxlen||QUERY(deflen))]; +  contents = contents[..(((int)arg->maxlen||QUERY(deflen))-1)];    m_delete(arg, "maxlen");       if(arg->magic)    {    magic=replace(arg->magic,"'","`");    m_delete(arg,"magic");    }       int input;    if(arg->submit)