Xnest: replace XDrawSegments() by xcb_poly_segment()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1656f12827
commit
df6b75fa45
|
@ -231,8 +231,13 @@ void
|
||||||
xnestPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nSegments,
|
xnestPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nSegments,
|
||||||
xSegment * pSegments)
|
xSegment * pSegments)
|
||||||
{
|
{
|
||||||
XDrawSegments(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
|
/* xSegment and xcb_segment_t are defined in the same way, both matching
|
||||||
(XSegment *) pSegments, nSegments);
|
the protocol layout, so we can directly typecast them */
|
||||||
|
xcb_poly_segment(xnestUpstreamInfo.conn,
|
||||||
|
xnestDrawable(pDrawable),
|
||||||
|
xnest_upstream_gc(pGC),
|
||||||
|
nSegments,
|
||||||
|
(xcb_segment_t*)pSegments);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue