Branch: Tag:

1997-06-23

1997-06-23 03:28:20 by Per Hedbor <ph@opera.com>

Small changes/improvements

Rev: server/base_server/configuration.pike:1.36
Rev: server/base_server/fonts.pike:1.9
Rev: server/base_server/roxen.pike:1.78
Rev: server/etc/roxen_master.pike:1.38
Rev: server/modules/graphics/graphic_text.pike:1.46
Rev: server/modules/misc/ismap.pike:1.10

1: - string cvs_version="$Id: graphic_text.pike,v 1.45 1997/06/12 02:41:46 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.46 1997/06/23 03:28:19 per Exp $";      #include <module.h>   inherit "module";
87:    " &lt;gh1&gt;&lt;/gh&gt;, which would otherwise\n"    " parse the whole document.\n"    " help Display this text\n" +  " scroll=width,steps,delay Make a scrolltext\n"    "\n"    "<b>Arguments passed on the the &lt;a&gt; tag (if href is specified):</b>\n "    " target=...\n"
643:    }      // place in cache, as a gif image. +  +  if(!args->scroll) +  {    if(args->fs)    data=({ img->togif_fs(@(args->notrans?({}):parse_color(args->bg))),    ({img->xsize(),img->ysize()})});
650:    data=({ img->togif(@(args->notrans?({}):parse_color(args->bg))),    ({img->xsize(),img->ysize()})});    img=0; -  +  } else { +  int len=100, steps=30, delay=5, ox; +  string res = img->gif_begin() + img->gif_netscape_loop(); +  sscanf(args->scroll, "%d,%d,%d", len, steps, delay); +  img=img->copy(0,0,(ox=img->xsize())+len-1,img->ysize()-1); +  img->paste(img, ox, 0); +  for(int i = 0; i<steps; i++) +  { +  int xp = i*ox/steps; +  res += img->copy(xp, 0, xp+len, img->ysize(), +  @parse_color(args->bg))->gif_add(0,0,delay); +  } +  res += img->gif_end(); +  data = ({ res, ({ len, img->ysize() }) }); +  }    cache_set(key, text, data);    if(size) return data[1];    return data[0];