[GRASS5] [bug #4066] (grass) gis.m: black background

Michael Barton michael.barton at asu.edu
Mon Feb 13 12:03:11 EST 2006


I think (hope) this is fixed in the gism2 version I just released. It
doesn't affect my Mac, so I can't test it.

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Markus Neteler <neteler at itc.it>
> Date: Mon, 13 Feb 2006 17:10:24 +0100
> To: Glynn Clements <glynn at gclements.plus.com>
> Cc: Jachym Cepicky <jachym.cepicky at centrum.cz>, Request Tracker
> <grass-bugs at intevation.de>, <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] [bug #4066] (grass) gis.m: black background
> 
> On Mon, Feb 13, 2006 at 03:59:19PM +0000, Glynn Clements wrote:
>> 
>> Jachym Cepicky wrote:
>> 
>>>>> this bug's URL: http://intevation.de/rt/webrt?serial_num=4066
>>>>> -------------------------------------------------------------------------
>>>>> 
>>>>> Subject: gis.m: black background
>>>>> 
>>>>> Platform: GNU/Linux/x86
>>>>> grass obtained from: CVS
>>>>> grass binary for platform: Compiled from Sources
>>>>> GRASS Version: cvs_head_20060207
>>>>> 
>>>>> I can confirm the problem with the back blackground in gis.m which
>>>>> Maciek mentioned as a side note in another bug report
>>>>> (http://intevation.de/rt/webrt?serial_num=4049&display=History).
>>>>> 
>>>>> When I erase the map display the background becomes white, but as
>>>>> soon as I display a map it becomes black again.
>>>> 
>>>> I've just fixed a bug related to the background colour in the PNG
>>>> driver; pngdriver.h had "unsigned int background" rather than
>>>> "extern unsigned int background", so each source file had its own
>>>> "background" variable, most of which would be implicitly initialised
>>>> to zero and remain at zero.
>>>> 
>>>> BTW, while most of the changes were simply reorganisation, and didn't
>>>> affect any functionality (or, at least, weren't meant to), the PNG
>>>> driver's implementation of R_erase() has been changed to erase to the
>>>> original background colour (which will be transparent if
>>>> GRASS_TRANSPARENT is set to TRUE), not the current colour.
>>>> 
>>>> This affects the behaviour of "d.erase -f" and "d.frame -e".
>>>> Previously, there was no way to erase to transparent after
>>>> initialisation.
>>> 
>>> is this problem solved or not? Fresh cvs from today, the background
>>> under vector file is black :-/
>> 
>> I had already committed that fix when I wrote the message; I haven't
>> changed anything relevant since.
>> 
>> Under what circumstances does the problem arise? Only with the PNG
>> driver, or also with XDRIVER? Are you setting any of the GRASS_*
>> environment variables.
> 
> 
> I got the following suggestion from Michael which helped:
> 
> On Fri, Feb 10, 2006 at 08:51:46AM -0700, Michael Barton wrote:
>> I think you need to set GRASS_TRANSPARENT to FALSE in mapcanvas.tcl.
> 
> I don't know if that's in CVS now.
> 
> Markus
> 




More information about the grass-dev mailing list