Branch: Tag:

1997-02-04

1997-02-04 21:39:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Lessened the type restrictions in two places to go around bugs in old Pike's

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

1: - string cvs_version="$Id: graphic_text.pike,v 1.23 1997/01/27 00:00:20 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.23.2.1 1997/02/04 21:39:44 grubba Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";
189:    return img/*->copy()*/;   }    - object (Image) blur(object (Image) img, int amnt) + object (Image) blur(object /* (Image) */ img, int amnt)   {    img->setcolor(0,0,0);    img = img->autocrop(amnt, 0,0,0,0, 0,0,0);
264:      object (Image) make_text_image(mapping args, object font, string text)   { -  object (Image) text_alpha=font->write(@(text/"\n")); +  object /* (Image) */ text_alpha=font->write(@(text/"\n"));    int xoffset=0, yoffset=0;       if(!text_alpha->xsize() || !text_alpha->ysize())