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

Andreas Lange Andreas.Lange at Rhein-Main.de
Sun Feb 17 06:04:47 EST 2002


Markus Neteler wrote:
> 
> 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?
> 

one set of variables (GRASS_WIDTH, GRASS_HEIGHT) for all
monitors/drivers. IMHO one can change the variables after opening the
driver, so that new started monitors inherit the new values with their
environment. 

Just my opinion.

Andreas
-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.tripod.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net



More information about the grass-dev mailing list