From f75efe1b8d2537ca913cea3a5b779d4a74617cbc Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 13 Oct 2004 09:07:24 +0000 Subject: 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. --- generic/Tabular.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'generic') 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. -- cgit v1.1