[GRASS5] vector line thickness implemented - was Re: R_line_width()

Glynn Clements glynn at gclements.plus.com
Wed Aug 10 09:04:43 EDT 2005


Huidae Cho wrote:

> Hmm, it seems that R_color() has the same problem if it's not called by
> the next drawing module. When I commented out R_color() block (lines
> 139-143) in display/d.grid/main.c, it draws grid lines with the last
> color d.vect used.
> 
> In terms of consistency, current R_line_width() looks OK. But since it's
> new feature, no drawing module takes into account this side effect or
> some modules even don't need this feature.

Exactly. Almost every module which uses drawing primitives which
depend upon the current colour (everything except for raster drawing
primitives) sets the current colour explicitly.

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




More information about the grass-dev mailing list