Xnest: replace XDrawPoints() by xcb_poly_point()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-01 10:29:28 +02:00
parent 911ef9c365
commit bae1243049

View File

@ -203,8 +203,14 @@ void
xnestPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, xnestPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints,
DDXPointPtr pPoints) DDXPointPtr pPoints)
{ {
XDrawPoints(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC), /* xPoint and xcb_segment_t are defined in the same way, both matching
(XPoint *) pPoints, nPoints, mode); 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 void