[GRASS-SVN] r46979 - grass/trunk/lib/pngdriver

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 5 06:10:29 EDT 2011


Author: martinl
Date: 2011-07-05 03:10:28 -0700 (Tue, 05 Jul 2011)
New Revision: 46979

Modified:
   grass/trunk/lib/pngdriver/Driver.c
   grass/trunk/lib/pngdriver/Graph_set.c
Log:
pngdriver: define driver name
	   sync messages


Modified: grass/trunk/lib/pngdriver/Driver.c
===================================================================
--- grass/trunk/lib/pngdriver/Driver.c	2011-07-05 10:09:39 UTC (rev 46978)
+++ grass/trunk/lib/pngdriver/Driver.c	2011-07-05 10:10:28 UTC (rev 46979)
@@ -27,6 +27,7 @@
     if (initialized)
 	return &drv;
 
+    drv.name = "png";
     drv.Box = PNG_Box;
     drv.Erase = PNG_Erase;
     drv.Graph_set = PNG_Graph_set;

Modified: grass/trunk/lib/pngdriver/Graph_set.c
===================================================================
--- grass/trunk/lib/pngdriver/Graph_set.c	2011-07-05 10:09:39 UTC (rev 46978)
+++ grass/trunk/lib/pngdriver/Graph_set.c	2011-07-05 10:10:28 UTC (rev 46979)
@@ -80,8 +80,8 @@
     p = getenv("GRASS_TRUECOLOR");
     png.true_color = !p || strcmp(p, "FALSE") != 0;
 
-    G_verbose_message(_("PNG: GRASS_TRUECOLOR status: %s"),
-		      png.true_color ? "TRUE" : "FALSE");
+    G_verbose_message(_("png: truecolor status %s"),
+		      png.true_color ? _("enabled") : _("disabled"));
 
     p = getenv("GRASS_PNG_MAPPED");
     do_map = p && strcmp(p, "TRUE") == 0;
@@ -125,9 +125,9 @@
 	    png.background = png_get_color(255, 255, 255, png.has_alpha ? 255 : 0);
     }
 
-    G_verbose_message(_("PNG: collecting to file <%s>"), png.file_name);
-    G_verbose_message(_("GRASS_WIDTH=%d, GRASS_HEIGHT=%d"),
-		      png.file_name, png.width, png.height);
+    G_verbose_message(_("png: collecting to file '%s'"), png.file_name);
+    G_verbose_message(_("png: image size %dx%d"),
+		      png.width, png.height);
 
     if (do_read && do_map)
 	map_file();



More information about the grass-commit mailing list