[GRASS-SVN] r39102 - grass/trunk/display/d.legend
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 10 03:16:02 EDT 2009
Author: hamish
Date: 2009-09-10 03:16:00 -0400 (Thu, 10 Sep 2009)
New Revision: 39102
Modified:
grass/trunk/display/d.legend/main.c
Log:
fix box rendering
Modified: grass/trunk/display/d.legend/main.c
===================================================================
--- grass/trunk/display/d.legend/main.c 2009-09-10 07:00:41 UTC (rev 39101)
+++ grass/trunk/display/d.legend/main.c 2009-09-10 07:16:00 UTC (rev 39102)
@@ -800,9 +800,9 @@
D_use_color(white);
D_begin();
D_move_abs(l + 2, (cur_dot_row - 1));
- D_cont_rel(0, (2 - dots_per_line));
- D_cont_rel((dots_per_line - 2), 0);
- D_cont_rel(0, (dots_per_line - 2));
+ D_cont_rel(0, (3 - dots_per_line));
+ D_cont_rel((dots_per_line - 3), 0);
+ D_cont_rel(0, (dots_per_line - 3));
D_close();
D_end();
D_stroke();
@@ -811,9 +811,9 @@
D_use_color(black);
D_begin();
D_move_abs(l + 3, (cur_dot_row - 2));
- D_cont_rel(0, (4 - dots_per_line));
- D_cont_rel((dots_per_line - 4), 0);
- D_cont_rel(0, (dots_per_line - 4));
+ D_cont_rel(0, (5 - dots_per_line));
+ D_cont_rel((dots_per_line - 5), 0);
+ D_cont_rel(0, (dots_per_line - 5));
D_close();
D_end();
D_stroke();
@@ -833,7 +833,7 @@
D_d_color(catlist[catlistCount - i - 1], &colors);
}
- D_pos_abs(l + 4, (cur_dot_row - 2));
+ D_pos_abs(l + 3, (cur_dot_row - 2));
D_polygon_rel(x_box, y_box, 5);
/* Draw text */
More information about the grass-commit
mailing list