Branch: Tag:

1998-11-19

1998-11-19 10:42:54 by Per Hedbor <ph@opera.com>

Fixed bug with bgscale

Rev: server/modules/graphics/graphic_text.pike:1.158

1: - constant cvs_version="$Id: graphic_text.pike,v 1.157 1998/11/19 10:22:28 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.158 1998/11/19 10:42:54 per Exp $";   constant thread_safe=1;      #include <module.h>
478:    } else    background = Image.image(xsize, ysize, @bgcolor);    -  -  if(args->bgscale) -  { -  string c1="black",c2="black",c3="black",c4="black"; -  sscanf(args->bgscale, "%s,%s,%s,%s", c1, c2, c3, c4); -  background->tuned_box(0,0, xsize,ysize, -  ({parse_color(c1),parse_color(c2),parse_color(c3), -  parse_color(c4)})); -  } -  -  -  +     if(args->border)    {    int b = (int)args->border;
524:    background = background->scale(xs, ys);    }    +  +  if(args->bgscale) +  { +  string c1="black",c2="black",c3="black",c4="black"; +  sscanf(args->bgscale, "%s,%s,%s,%s", c1, c2, c3, c4); +  background->tuned_box(0,0, xsize,ysize, +  ({parse_color(c1),parse_color(c2),parse_color(c3), +  parse_color(c4)})); +  } +  +     if(args->turbulence)    {    array (float|array(int)) arg=({});