aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2004-10-13 09:07:24 +0000
committerlecoanet2004-10-13 09:07:24 +0000
commitf75efe1b8d2537ca913cea3a5b779d4a74617cbc (patch)
tree8b863817724a25f4ccdbc6a38f84f670b07454e0
parentabc6851e43003bf24f21ea7f2d11f435c32b57f7 (diff)
downloadtkzinc-f75efe1b8d2537ca913cea3a5b779d4a74617cbc.zip
tkzinc-f75efe1b8d2537ca913cea3a5b779d4a74617cbc.tar.gz
tkzinc-f75efe1b8d2537ca913cea3a5b779d4a74617cbc.tar.bz2
tkzinc-f75efe1b8d2537ca913cea3a5b779d4a74617cbc.tar.xz
Fixed a label bounding box error under GL:
the borders being drawn with a thick line the bbox need to be increased in all directions by 1.
-rw-r--r--generic/Tabular.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/Tabular.c b/generic/Tabular.c
index 532d573..79fe072 100644
--- a/generic/Tabular.c
+++ b/generic/Tabular.c
@@ -289,6 +289,15 @@ ComputeCoordinates(ZnItem item,
item->item_bounding_box.orig = field_set->label_pos;
item->item_bounding_box.corner.x = field_set->label_pos.x + width;
item->item_bounding_box.corner.y = field_set->label_pos.y + height;
+ /*
+ * Need to slightly increase the bbox for GL thick lines
+ */
+#ifdef GL
+ item->item_bounding_box.orig.x -= 1;
+ item->item_bounding_box.orig.y -= 1;
+ item->item_bounding_box.corner.x += 1;
+ item->item_bounding_box.corner.y += 1;
+#endif
/*
* Update connected items.