[GRASS-dev] [r41158-60] d.vect: default line width to '1'

Glynn Clements glynn at gclements.plus.com
Tue Feb 23 16:37:40 EST 2010


Martin Landa wrote:

> >> anyway from user POV width=0 seems quite strange I guess.
> >
> > XDRIVER passes the line width directly to XChangeGC. X specifies the
> > precise behaviour for non-zero line width, but drivers have some
> > freedom as to how zero-width lines are handled, so they can use the
> > hardware's "thin line" drawing primitive, if it has one. A width of
> > zero can potentially result in significantly faster operation.
> 
> OK, so should I revert the changes?

I think that the default line width should be zero, i.e. "thin" lines. 
On drivers where there is no such thing as a "thin" line, the driver
will use a sensible default (which might not be the same as "1").

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list