浏览代码

Replace R_stabilize() with R_flush()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32599 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 年之前
父节点
当前提交
6d62321c0d

+ 0 - 4
display/d.barscale/draw_scale.c

@@ -120,8 +120,6 @@ int draw_scale(int toptext)
 	R_move_abs((int)(pl + w / 2 - 7 * .81), pt + 14);
 	R_text("N");
 
-	R_stabilize();
-
 	return 0;
     }
 
@@ -246,7 +244,5 @@ int draw_scale(int toptext)
 	R_text(scales[incr].name);
     }
 
-    R_stabilize();
-
     return (0);
 }

+ 1 - 1
display/d.geodesic/plot.c

@@ -73,7 +73,7 @@ plot(double lon1, double lat1, double lon2, double lat2, int line_color,
 	R_move_abs(text_x, text_y);
 	R_standard_color(text_color);
 	R_text(buf);
-	R_stabilize();
+	R_flush();
     }
 
     return 0;

+ 1 - 1
display/d.measure/draw_line.c

@@ -19,7 +19,7 @@ draw_line(int screen_x, int screen_y, int cur_screen_x, int cur_screen_y,
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

+ 2 - 1
display/d.measure/msurements.c

@@ -95,7 +95,8 @@ int measurements(int color1, int color2, int s_flag, int m_flag, int k_flag)
 		cur_uy = uy;
 	    }
 	} while (button != 3);
-	R_stabilize();
+
+	R_flush();
 
 	if (!s_flag)
 	    G_clear_screen();

+ 1 - 1
display/d.profile/PlotProfile.c

@@ -134,7 +134,7 @@ int PlotProfile(struct Profile profile, char *letter, int min, int max)
     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;
 }

+ 1 - 1
display/d.profile/What.c

@@ -44,7 +44,7 @@ int What(char *name,
 	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);
 

+ 1 - 1
display/d.profile/bnw_line.c

@@ -18,7 +18,7 @@ int black_and_white_line(int screen_x, int screen_y,
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }

+ 5 - 5
display/d.profile/main.c

@@ -177,7 +177,7 @@ int main(int argc, char **argv)
 	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 @@ int main(int argc, char **argv)
 		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 @@ int main(int argc, char **argv)
 	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 @@ int main(int argc, char **argv)
 		    }
 		}
 	    }
-	    R_stabilize();
+	    R_flush();
 	} while (button != 3 && button != 2);
 
 	/* display mouse-menu in mouse-menu window */
@@ -385,7 +385,7 @@ int main(int argc, char **argv)
 	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) {

+ 1 - 1
display/d.rhumbline/plot.c

@@ -51,7 +51,7 @@ plot(double lon1, double lat1, double lon2, double lat2, int line_color,
 	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;
 }

+ 1 - 1
display/d.where/b_w_line.c

@@ -35,7 +35,7 @@ black_and_white_line(int c1, int c2, int screen_x, int screen_y,
 	R_cont_abs(screen_x + 1, screen_y);
     }
 
-    R_stabilize();
+    R_flush();
 
     return 0;
 }