[GRASS-SVN] r34090 - grass/trunk/display/d.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 30 08:11:05 EDT 2008
Author: hamish
Date: 2008-10-30 08:11:05 -0400 (Thu, 30 Oct 2008)
New Revision: 34090
Modified:
grass/trunk/display/d.info/main.c
Log:
use D_get_u* as suggested by Glynn on the dev-ML
Modified: grass/trunk/display/d.info/main.c
===================================================================
--- grass/trunk/display/d.info/main.c 2008-10-30 11:35:09 UTC (rev 34089)
+++ grass/trunk/display/d.info/main.c 2008-10-30 12:11:05 UTC (rev 34090)
@@ -68,7 +68,7 @@
G_fatal_error(_("No graphics device selected"));
- if (rflag->answer || dflag->answer || fflag->answer || gflag->answer)
+ if (rflag->answer || dflag->answer || fflag->answer)
R_get_window(&t, &b, &l, &r);
@@ -96,10 +96,10 @@
/* outer bounds of the screen (including margins) */
D_setup(0);
- n = D_d_to_u_row(t);
- s = D_d_to_u_row(b);
- w = D_d_to_u_col(l);
- e = D_d_to_u_col(r);
+ n = D_get_u_north();
+ s = D_get_u_south();
+ w = D_get_u_west();
+ e = D_get_u_east();
fprintf(stdout, "n=%f\n", n );
fprintf(stdout, "s=%f\n", s );
More information about the grass-commit
mailing list