[GRASS5] Re: [GRASSLIST:1560] Re: back ground

Markus Neteler neteler at itc.it
Tue Oct 28 05:04:45 EST 2003


On Tue, Oct 28, 2003 at 09:41:54AM +0000, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > (mv'ed to grass5)
> > 
> > On Mon, Oct 27, 2003 at 08:43:07PM +1300, Hamish wrote:
> > > > how can i change the back ground,black to white,to viwe the maps in
> > > > GRASS 5.0.0?
> > >
> > > d.erase color=white
> > 
> > Which change is necessary for GRASS 5.7 to keep the white
> > standard background when resizing the monitor? 
> 
> Copy Serve_Xevent.c; on line 292, change BlackPixel to WhitePixel.

Thanks. I have subitted
     if (strcmp(DEFAULT_FG_COLOR, "black"))
       XSetForeground(dpy, gc, BlackPixel(dpy, scrn));
     else
       XSetForeground(dpy, gc, WhitePixel(dpy, scrn));

to CVS. Now it works both for 5.3 and 5.7.

> BTW, I'm not sure if these lines (266+) have any relevance.
> 
>     /* set standard color to black and erase */
>     Standard_color(BLACK);
>     Erase();

They don't harm in this context. Do you mean that they are useless?

Thanks for the quick hint,

Markus




More information about the grass-dev mailing list