[GRASS-SVN] r32597 - grass/trunk/lib/display

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 22:01:34 EDT 2008


Author: glynn
Date: 2008-08-06 22:01:34 -0400 (Wed, 06 Aug 2008)
New Revision: 32597

Modified:
   grass/trunk/lib/display/window.c
Log:
Set frame to full-screen by default


Modified: grass/trunk/lib/display/window.c
===================================================================
--- grass/trunk/lib/display/window.c	2008-08-07 01:51:11 UTC (rev 32596)
+++ grass/trunk/lib/display/window.c	2008-08-07 02:01:34 UTC (rev 32597)
@@ -65,12 +65,19 @@
 int D_get_screen_window(int *t, int *b, int *l, int *r)
 {
     if (!screen_window_set)
-	return -1;
+    {
+	screen_window.t = R_screen_top();
+	screen_window.b = R_screen_bot();
+	screen_window.l = R_screen_left();
+	screen_window.r = R_screen_rite();
+	screen_window_set = 1;
+    }
 
     *t = screen_window.t;
     *b = screen_window.b;
     *l = screen_window.l;
     *r = screen_window.r;
+
     return 0;
 }
 



More information about the grass-commit mailing list