[GRASS5] Re: [GRASS-CVS] CVS update: grass/src/display/devices/CELL

Markus Neteler neteler at itc.it
Sat Feb 16 18:43:43 EST 2002


On Sat, Feb 16, 2002 at 08:35:31PM +0000, Glynn Clements wrote:
> Markus Neteler wrote:
> > the recent changes to XDRIVER introduced a bug:
> [snip]
[snip] 
> > Please pre-define the variable if unset (will also affect GRASS_WIDTH,
> > unchecked).
> OK, done.

Thanks, working now.

> > Then a question: Now PNGDriver and Xdriver use the same size variables
> > GRASS_HEIGHT and GRASS_WIDTH (or not?).
> 
> Yes; all monitors now use these variables. The intention was to make
> it easier for programs which manage monitors, so that they don't need
> a table of which monitor uses which variables.
> 
> If you want per-monitor-type variables, it would be better to
> generalise the mechanism using the driver name, e.g. with something
> like GRASS_WIDTH_XDRIVER, GRASS_WIDTH_PNG, GRASS_WIDTH_CELL etc rather
> than having a special case for one of the drivers.

Well, what's preferred? Individual size variables for each driver or
overall variables? Opinions?

Markus



More information about the grass-dev mailing list