Преглед изворни кода

Set frame to full-screen by default

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32597 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements пре 16 година
родитељ
комит
ebf20f043c
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      lib/display/window.c

+ 8 - 1
lib/display/window.c

@@ -65,12 +65,19 @@ static void D_set_window(int t, int b, int l, int r)
 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;
 }