[GRASS5] Re: [GRASSLIST:1560] Re: back ground

Glynn Clements glynn.clements at virgin.net
Fri Oct 31 03:50:42 EST 2003

Hamish wrote:

> > Next thing to tackle is the black background in the PNG driver.
> > Again I am not sure how to do that. It seems to be a change needed
> > in PNG/Graph_Set.c
> while we're on the PNG driver, there's a bug in it somewhere which makes
> R_polygon_rel and R_polygon_abs draw one pixel too far to the right and
> one pixel too far down.
> Presumably in src/display/devices/PNGdriver/Polygn_abs.c ?

OK; I appear to have overestimated the competence of GD's authors.
I can add a work-around for the rectangle case easily enough; fixing
the general polygon case is harder.

I'll re-write PNGdriver not to use GD; that will have the added
benefit of eliminating all GD dependency issues.

Glynn Clements <glynn.clements at virgin.net>

More information about the grass-dev mailing list