(!1654) Xnest: replace XDrawLines() by xcb_poly_line()

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:33:32 +02:00
parent b510e2cf75
commit c151a5e9ed

View File

@ -220,8 +220,14 @@ void
xnestPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints,
DDXPointPtr pPoints)
{
XDrawLines(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_line(xnestUpstreamInfo.conn,
mode,
xnestDrawable(pDrawable),
xnest_upstream_gc(pGC),
nPoints,
(xcb_point_t*)pPoints);
}
void