[GRASS-SVN] r30810 - grass/trunk/vector/v.digit

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 30 08:12:19 EDT 2008


Author: hamish
Date: 2008-03-30 08:12:19 -0400 (Sun, 30 Mar 2008)
New Revision: 30810

Modified:
   grass/trunk/vector/v.digit/display.c
Log:
respect background color setting (trac bug #74)

Modified: grass/trunk/vector/v.digit/display.c
===================================================================
--- grass/trunk/vector/v.digit/display.c	2008-03-30 12:06:05 UTC (rev 30809)
+++ grass/trunk/vector/v.digit/display.c	2008-03-30 12:12:19 UTC (rev 30810)
@@ -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