From 3df9aebbb12956000ce94d72a0dc0613cb75b3c4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 1 Aug 2024 13:06:19 +0200 Subject: [PATCH] Xnest: replace XFillArcs() by xcb_poly_fill_arc() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/GCOps.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/xnest/GCOps.c b/hw/xnest/GCOps.c index b1b5f73f3..2588a8e4d 100644 --- a/hw/xnest/GCOps.c +++ b/hw/xnest/GCOps.c @@ -295,8 +295,13 @@ xnestPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nRectangles, void xnestPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc * pArcs) { - XFillArcs(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC), - (XArc *) pArcs, nArcs); + /* xArc and xcb_arc_t are defined in the same way, both matching + the protocol layout, so we can directly typecast them */ + xcb_poly_fill_arc(xnestUpstreamInfo.conn, + xnestDrawable(pDrawable), + xnest_upstream_gc(pGC), + nArcs, + (xcb_arc_t*)pArcs); } int