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.51 1997/08/12 19:45:43 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.52 1997/08/12 20:29:06 grubba Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image   # define Font font
Roxen.git/server/modules/graphics/graphic_text.pike:387:       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,id);       if((args->background) && (background = load_image(args->background, id))) { +  // Don't thrash the image-cache. +  background = background->copy();    xsize = background->xsize();    ysize = background->ysize();    switch(lower_case(args->talign||"left")) {    case "center":    xoffset = (xsize/2 - txsize/2);    yoffset = (ysize/2 - tysize/2);    break;    case "right":    xoffset = (xsize - txsize);    break;