[GRASS-SVN] r30965 - grass/branches/releasebranch_6_3/vector/v.digit
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 13 03:01:51 EDT 2008
Author: hamish
Date: 2008-04-13 03:01:50 -0400 (Sun, 13 Apr 2008)
New Revision: 30965
Modified:
grass/branches/releasebranch_6_3/vector/v.digit/display.c
Log:
respect background color setting (trac bug #74, merge from HEAD)
Modified: grass/branches/releasebranch_6_3/vector/v.digit/display.c
===================================================================
--- grass/branches/releasebranch_6_3/vector/v.digit/display.c 2008-04-13 05:54:09 UTC (rev 30964)
+++ grass/branches/releasebranch_6_3/vector/v.digit/display.c 2008-04-13 07:01:50 UTC (rev 30965)
@@ -199,8 +199,11 @@
putenv("GRASS_RENDER_IMMEDIATE=TRUE");
putenv("GRASS_TRUECOLOR=TRUE");
- putenv("GRASS_BACKGROUNDCOLOR=FFFFFF");
+ sprintf(cmd_buf, "GRASS_BACKGROUNDCOLOR=%02x%02x%02x",
+ Symb[SYMB_BACKGROUND].r, Symb[SYMB_BACKGROUND].g, Symb[SYMB_BACKGROUND].b );
+ putenv(cmd_buf);
+
sprintf(img_buf, "GRASS_PNGFILE=%s.ppm", ppmfile);
putenv(img_buf);
More information about the grass-commit
mailing list