|
@@ -10,7 +10,8 @@
|
|
|
|
|
|
|
|
|
int plot_grid(double grid_size, double east, double north, int do_text,
|
|
|
- int gcolor, int tcolor, int fontsize, int mark_type)
|
|
|
+ int gcolor, int tcolor, int fontsize, int mark_type,
|
|
|
+ double line_width)
|
|
|
{
|
|
|
double x, y, y0;
|
|
|
double e1, e2;
|
|
@@ -37,7 +38,10 @@ int plot_grid(double grid_size, double east, double north, int do_text,
|
|
|
|
|
|
if (mark_type == MARK_GRID) {
|
|
|
D_use_color(gcolor);
|
|
|
+ if (line_width)
|
|
|
+ D_line_width(line_width);
|
|
|
D_line_abs(x, window.north, x, window.south);
|
|
|
+ D_line_width(0); /* reset so text doesn't use it */
|
|
|
}
|
|
|
|
|
|
if (do_text) {
|
|
@@ -79,9 +83,12 @@ int plot_grid(double grid_size, double east, double north, int do_text,
|
|
|
while (y <= window.north) {
|
|
|
if (mark_type == MARK_GRID) {
|
|
|
D_use_color(gcolor);
|
|
|
+ if (line_width)
|
|
|
+ D_line_width(line_width);
|
|
|
D_line_abs(window.east, y, e1, y);
|
|
|
D_line_abs(e1, y, e2, y);
|
|
|
D_line_abs(e2, y, window.west, y);
|
|
|
+ D_line_width(0); /* reset so text doesn't use it */
|
|
|
}
|
|
|
|
|
|
if (do_text) {
|
|
@@ -136,7 +143,7 @@ int plot_grid(double grid_size, double east, double north, int do_text,
|
|
|
|
|
|
int plot_geogrid(double size, struct pj_info info_in, struct pj_info info_out,
|
|
|
int do_text, int gcolor, int tcolor, int fontsize,
|
|
|
- int mark_type)
|
|
|
+ int mark_type, double line_width)
|
|
|
{
|
|
|
double g;
|
|
|
double e1, e2, n1, n2;
|
|
@@ -199,7 +206,11 @@ int plot_geogrid(double size, struct pj_info info_in, struct pj_info info_out,
|
|
|
start_coord = n1;
|
|
|
font_angle = get_heading((e1 - e2), (n1 - n2));
|
|
|
}
|
|
|
+
|
|
|
+ if (line_width)
|
|
|
+ D_line_width(line_width);
|
|
|
D_line_abs(e1, n1, e2, n2);
|
|
|
+ D_line_width(0);
|
|
|
}
|
|
|
|
|
|
if (do_text) {
|
|
@@ -252,7 +263,10 @@ int plot_geogrid(double size, struct pj_info info_in, struct pj_info info_out,
|
|
|
start_coord = e1;
|
|
|
}
|
|
|
|
|
|
+ if (line_width)
|
|
|
+ D_line_width(line_width);
|
|
|
D_line_abs(e1, n1, e2, n2);
|
|
|
+ D_line_width(0);
|
|
|
}
|
|
|
if (do_text) {
|
|
|
/* Set text color */
|