[GRASS-SVN] r46982 - grass/trunk/lib/psdriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 5 06:12:34 EDT 2011
Author: martinl
Date: 2011-07-05 03:12:34 -0700 (Tue, 05 Jul 2011)
New Revision: 46982
Modified:
grass/trunk/lib/psdriver/Driver.c
grass/trunk/lib/psdriver/Graph_set.c
Log:
psdriver: define driver name
sync messages
Modified: grass/trunk/lib/psdriver/Driver.c
===================================================================
--- grass/trunk/lib/psdriver/Driver.c 2011-07-05 10:12:12 UTC (rev 46981)
+++ grass/trunk/lib/psdriver/Driver.c 2011-07-05 10:12:34 UTC (rev 46982)
@@ -27,6 +27,7 @@
if (initialized)
return &drv;
+ drv.name = "ps";
drv.Box = PS_Box;
drv.Erase = PS_Erase;
drv.Graph_set = PS_Graph_set;
Modified: grass/trunk/lib/psdriver/Graph_set.c
===================================================================
--- grass/trunk/lib/psdriver/Graph_set.c 2011-07-05 10:12:12 UTC (rev 46981)
+++ grass/trunk/lib/psdriver/Graph_set.c 2011-07-05 10:12:34 UTC (rev 46982)
@@ -196,8 +196,8 @@
p = getenv("GRASS_PS_TRAILER");
ps.no_trailer = p && strcmp(p, "FALSE") == 0;
- G_verbose_message(_("PS: GRASS_TRUECOLOR status: %s"),
- ps.true_color ? "TRUE" : "FALSE");
+ G_verbose_message(_("ps: truecolor status %s"),
+ ps.true_color ? _("enabled") : _("disabled"));
get_paper();
@@ -211,9 +211,9 @@
write_setup();
}
- G_verbose_message(_("PS: collecting to file <%s>"), file_name);
- G_verbose_message(_("GRASS_WIDTH=%.1f, GRASS_HEIGHT=%.1f"),
- file_name, width, height);
+ G_verbose_message(_("ps: collecting to file '%s'"), file_name);
+ G_verbose_message(_("ps: image size %dx%d"),
+ screen_width, screen_height);
fflush(ps.outfp);
More information about the grass-commit
mailing list