[GRASS-SVN] r32599 - in grass/trunk/display: d.barscale d.geodesic d.measure d.profile d.rhumbline d.where

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 23:18:28 EDT 2008


Author: glynn
Date: 2008-08-06 23:18:28 -0400 (Wed, 06 Aug 2008)
New Revision: 32599

Modified:
   grass/trunk/display/d.barscale/draw_scale.c
   grass/trunk/display/d.geodesic/plot.c
   grass/trunk/display/d.measure/draw_line.c
   grass/trunk/display/d.measure/msurements.c
   grass/trunk/display/d.profile/PlotProfile.c
   grass/trunk/display/d.profile/What.c
   grass/trunk/display/d.profile/bnw_line.c
   grass/trunk/display/d.profile/main.c
   grass/trunk/display/d.rhumbline/plot.c
   grass/trunk/display/d.where/b_w_line.c
Log:
Replace R_stabilize() with R_flush()


Modified: grass/trunk/display/d.barscale/draw_scale.c
===================================================================
--- grass/trunk/display/d.barscale/draw_scale.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.barscale/draw_scale.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -120,8 +120,6 @@
 	R_move_abs((int)(pl + w / 2 - 7 * .81), pt + 14);
 	R_text("N");
 
-	R_stabilize();
-
 	return 0;
     }
 
@@ -246,7 +244,5 @@
 	R_text(scales[incr].name);
     }
 
-    R_stabilize();
-
     return (0);
 }

Modified: grass/trunk/display/d.geodesic/plot.c
===================================================================
--- grass/trunk/display/d.geodesic/plot.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.geodesic/plot.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -73,7 +73,7 @@
 	R_move_abs(text_x, text_y);
 	R_standard_color(text_color);
 	R_text(buf);
-	R_stabilize();
+	R_flush();
     }
 
     return 0;

Modified: grass/trunk/display/d.measure/draw_line.c
===================================================================
--- grass/trunk/display/d.measure/draw_line.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.measure/draw_line.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -19,7 +19,7 @@
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

Modified: grass/trunk/display/d.measure/msurements.c
===================================================================
--- grass/trunk/display/d.measure/msurements.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.measure/msurements.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -95,8 +95,9 @@
 		cur_uy = uy;
 	    }
 	} while (button != 3);
-	R_stabilize();
 
+	R_flush();
+
 	if (!s_flag)
 	    G_clear_screen();
 	fprintf(output, "\nButtons:\n");

Modified: grass/trunk/display/d.profile/PlotProfile.c
===================================================================
--- grass/trunk/display/d.profile/PlotProfile.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.profile/PlotProfile.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -134,7 +134,7 @@
     R_move_abs((int)(l + TEXT_COLUMN * (r - l) - .5 * (tr - tl)),
 	       (int)(y_line[0] + .5 * (tb - tt)));
     R_text(txt_buf);
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

Modified: grass/trunk/display/d.profile/What.c
===================================================================
--- grass/trunk/display/d.profile/What.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.profile/What.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -44,7 +44,7 @@
 	else
 	    sprintf(txt_buf, "(%d) %s", buf[col], G_get_cat(buf[col], &cat));
 	DrawText(22, 4, 1, txt_buf);
-	R_stabilize();
+	R_flush();
     }
     G_unopen_cell(fd);
 

Modified: grass/trunk/display/d.profile/bnw_line.c
===================================================================
--- grass/trunk/display/d.profile/bnw_line.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.profile/bnw_line.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -18,7 +18,7 @@
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

Modified: grass/trunk/display/d.profile/main.c
===================================================================
--- grass/trunk/display/d.profile/main.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.profile/main.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -177,7 +177,7 @@
 	DrawText(15, 3, 1, "MOUSE   | Left:   Where am I?");
 	DrawText(15, 4, 1, "BUTTON  | Middle: Set FIRST point");
 	DrawText(15, 5, 1, "MENU    | Right:  Quit this\n");
-	R_stabilize();
+	R_flush();
 
 	/* LOOP to get first point of line */
 	do {
@@ -211,7 +211,7 @@
 		D_erase_window();
 		R_standard_color(D_translate_color("red"));
 		DrawText(25, 1, 1, "OUTSIDE CURRENT WINDOW");
-		R_stabilize();
+		R_flush();
 		button = 1;
 	    }
 	    else {
@@ -232,7 +232,7 @@
 	DrawText(15, 3, 1, "MOUSE   | Left:   Where am I?");
 	DrawText(15, 4, 1, "BUTTON  | Middle: Set SECOND point");
 	DrawText(15, 5, 1, "MENU    | Right:  Quit this\n");
-	R_stabilize();
+	R_flush();
 
 	/* move graphics position to first point chosen */
 	R_move_abs(screen_x, screen_y);
@@ -372,7 +372,7 @@
 		    }
 		}
 	    }
-	    R_stabilize();
+	    R_flush();
 	} while (button != 3 && button != 2);
 
 	/* display mouse-menu in mouse-menu window */
@@ -385,7 +385,7 @@
 	DrawText(15, 3, 1, "MOUSE   | Left:   DO ANOTHER");
 	DrawText(15, 4, 1, "BUTTON  | Middle: CLEAR DISPLAY");
 	DrawText(15, 5, 1, "MENU    | Right:  QUIT");
-	R_stabilize();
+	R_flush();
 
 	R_get_location_with_pointer(&screen_x, &screen_y, &button);
 	if (button == 3) {

Modified: grass/trunk/display/d.rhumbline/plot.c
===================================================================
--- grass/trunk/display/d.rhumbline/plot.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.rhumbline/plot.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -51,7 +51,7 @@
 	G_plot_where_xy(lon1, (lat1 + lat2) / 2, &text_x, &text_y);
 	G_plot_line(lon1, lat1, lon2, lat2);
     }
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

Modified: grass/trunk/display/d.where/b_w_line.c
===================================================================
--- grass/trunk/display/d.where/b_w_line.c	2008-08-07 02:02:44 UTC (rev 32598)
+++ grass/trunk/display/d.where/b_w_line.c	2008-08-07 03:18:28 UTC (rev 32599)
@@ -35,7 +35,7 @@
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }



More information about the grass-commit mailing list