Xnest: replace XFillPolygon() by xcb_fill_poly()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-01 12:42:48 +02:00
parent 7400d749c3
commit 6ee20d26da

View File

@ -273,8 +273,15 @@ void
xnestFillPolygon(DrawablePtr pDrawable, GCPtr pGC, int shape, int mode,
int nPoints, DDXPointPtr pPoints)
{
XFillPolygon(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
(XPoint *) pPoints, nPoints, shape, mode);
/* xPoint and xcb_segment_t are defined in the same way, both matching
the protocol layout, so we can directly typecast them */
xcb_fill_poly(xnestUpstreamInfo.conn,
xnestDrawable(pDrawable),
xnest_upstream_gc(pGC),
shape,
mode,
nPoints,
(xcb_point_t*)pPoints);
}
void