Roxen.git / server / etc / modules / GText.pmod

version» Context lines:

Roxen.git/server/etc/modules/GText.pmod:1:    - #if !efun(make_matrix) + #if !constant(make_matrix)   private mapping (int:array(array(int))) matrixes = ([]);   array (array(int)) make_matrix(int size)   {    if(matrixes[size]) return matrixes[size];    array res = allocate(size, allocate)(size);    for(int i=0; i<size; i++)    for(int j=0; j<size; j++)    res[i][j] = (int)max((float)size/2.0-sqrt((size/2-i)*(size/2-i) + (size/2-j)*(size/2-j)),0);    return matrixes[size] = res;   }
Roxen.git/server/etc/modules/GText.pmod:231:    yoffset += (int)args->border;    xsize += ((int)args->border)*2;    ysize += ((int)args->border)*2;    }       array (int) bgcolor = parse_color(args->bgcolor);    array (int) fgcolor = parse_color(args->fgcolor);       Image.Image background,foreground;    - #if constant(Sitebuilder) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_start_use_imagecache)    if (Sitebuilder.sb_start_use_imagecache) {    Sitebuilder.sb_start_use_imagecache(args, id);    }   #endif       if(args->texture)    {    extend_alpha = 1;    mapping err = ([ ]);    Image.Image t = roxen.load_image(args->texture, id, err);
Roxen.git/server/etc/modules/GText.pmod:310:    }    xsize = max(xsize,background->xsize());    ysize = max(ysize,background->ysize());       if(alpha)    background->paste_alpha_color(alpha->invert(),@bgcolor);       } else    background = Image.Image(xsize, ysize, @bgcolor);    - #if constant(Sitebuilder) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_end_use_imagecache)    if (Sitebuilder.sb_end_use_imagecache) {    Sitebuilder.sb_end_use_imagecache(args, id);    }   #endif       int xsize2 = (int)args->xsize || xsize;    int ysize2 = (int)args->ysize || ysize;    switch(lower_case(args->talign||"left")) {    case "center":    xoffset = (xsize2/2 - txsize/2);