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,
|
||||
xSegment * pSegments)
|
||||
{
|
||||
XDrawSegments(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
|
||||
(XSegment *) pSegments, nSegments);
|
||||
/* xSegment and xcb_segment_t are defined in the same way, both matching
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue