From 0758704baf94c8ef3e4e08016b992e2f5d8548c4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 1 Aug 2024 10:29:28 +0200 Subject: [PATCH] (!1654) Xnest: replace XDrawPoints() by xcb_poly_point() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/GCOps.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/xnest/GCOps.c b/hw/xnest/GCOps.c index 8543c833f..c387e33af 100644 --- a/hw/xnest/GCOps.c +++ b/hw/xnest/GCOps.c @@ -204,8 +204,14 @@ void xnestPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, DDXPointPtr pPoints) { - XDrawPoints(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC), - (XPoint *) pPoints, nPoints, mode); + /* xPoint and xcb_segment_t are defined in the same way, both matching + the protocol layout, so we can directly typecast them */ + xcb_poly_point(xnestUpstreamInfo.conn, + mode, + xnestDrawable(pDrawable), + xnest_upstream_gc(pGC), + nPoints, + (xcb_point_t*)pPoints); } void