From ee09ecbce14142cfeceac75c1ead2a6e92bb8d86 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 29 Aug 2006 08:57:21 +0000 Subject: Fixed bug #50. The bounding box was incorrect. Values reported by bbox were erroneous and drawing under X11/GDI was incorrect as a result. --- generic/Reticle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/Reticle.c b/generic/Reticle.c index 59e3cdc..0c7abe2 100644 --- a/generic/Reticle.c +++ b/generic/Reticle.c @@ -282,7 +282,7 @@ ComputeCoordinates(ZnItem item, (reticle->num_circles - 1) * reticle->step_size_dev; item->item_bounding_box.orig.x = reticle->dev.x - half_width; item->item_bounding_box.orig.y = reticle->dev.y - half_width; - item->item_bounding_box.corner.x = item->item_bounding_box.orig.y + (2 * half_width); + item->item_bounding_box.corner.x = item->item_bounding_box.orig.x + (2 * half_width); item->item_bounding_box.corner.y = item->item_bounding_box.orig.y + (2 * half_width); } } -- cgit v1.1