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.23.2.1 1997/02/04 21:39:44 grubba Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.23.2.2 1997/02/15 15:46:58 grubba Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";         array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",    "Makes a few new tags, which render text to gifs "
Roxen.git/server/modules/graphics/graphic_text.pike:327:          array (int) bgcolor = parse_color(args->bg);    array (int) fgcolor = parse_color(args->fg);       object background,foreground;          if(args->texture) foreground = load_image(args->texture);    -  if(args->background) -  { -  background = load_image(args->background); +  if((args->background) && (background = load_image(args->background))) {    xsize = background->xsize();    ysize = background->ysize(); -  switch(lower_case(args->talign||"left")) -  { +  switch(lower_case(args->talign||"left")) {    case "center":    xoffset = (xsize/2 - txsize/2);    break;    case "right":    xoffset = (xsize - txsize);    break;    case "left":    }    } else    background = Image(xsize, ysize, @bgcolor);