Explorar el Código

pngdriver: define driver name
sync messages


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46979 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa hace 14 años
padre
commit
cd70056828
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. 1 0
      lib/pngdriver/Driver.c
  2. 5 5
      lib/pngdriver/Graph_set.c

+ 1 - 0
lib/pngdriver/Driver.c

@@ -27,6 +27,7 @@ const struct driver *PNG_Driver(void)
     if (initialized)
 	return &drv;
 
+    drv.name = "png";
     drv.Box = PNG_Box;
     drv.Erase = PNG_Erase;
     drv.Graph_set = PNG_Graph_set;

+ 5 - 5
lib/pngdriver/Graph_set.c

@@ -80,8 +80,8 @@ int PNG_Graph_set(void)
     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 @@ int PNG_Graph_set(void)
 	    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();