From a4027ec00ed8222d7ee0a7573e3141bdfa469c24 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 1 Aug 2024 12:30:29 +0200 Subject: [PATCH] Xnest: replace XDrawArcs() by xcb_poly_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 df338c04a..b0dc59e9a 100644 --- a/hw/xnest/GCOps.c +++ b/hw/xnest/GCOps.c @@ -256,8 +256,13 @@ xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nRectangles, void xnestPolyArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc * pArcs) { - XDrawArcs(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_arc(xnestUpstreamInfo.conn, + xnestDrawable(pDrawable), + xnest_upstream_gc(pGC), + nArcs, + (xcb_arc_t*)pArcs); } void