From 1ecf5a30f82080af54efab1d37ff9b1c03591c32 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 2 Mar 2024 02:43:49 +0100 Subject: [PATCH] fix wrong bounding rectangle coordinate in circle bbox (drawtemparc()) --- src/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 30230c43..605ec266 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1342,8 +1342,8 @@ void drawtemparc(GC gc, int what, double x, double y, double r, double a, double XDrawArc(display, xctx->window, gc, (int)xx1, (int)yy1, (int)(xx2-xx1), (int)(yy2-yy1), (int)(a*64), (int)(b*64)); XDrawRectangle(display, xctx->window, gc, (int)sx1, (int)sy1, - (unsigned int)x2 - (unsigned int)sx1, - (unsigned int)y2 - (unsigned int)sy1); + (unsigned int)sx2 - (unsigned int)sx1, + (unsigned int)sy2 - (unsigned int)sy1); } } }