fix wrong bounding rectangle coordinate in circle bbox (drawtemparc())

This commit is contained in:
stefan schippers 2024-03-02 02:43:49 +01:00
parent 9f167f9568
commit 1ecf5a30f8
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}