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

Glynn Clements glynn at gclements.plus.com
Mon Feb 22 12:26:10 EST 2010


Martin Landa wrote:

> >> see discussion in the ML archives if interested in why, or ping me later.
> >
> > so why? testing all version, I cannot see difference between 0 and 1.
> 
> 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.

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


More information about the grass-dev mailing list