Xnest: replace XDrawRectangles() by xcb_poly_rectangle()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
df6b75fa45
commit
63929e61c9
|
@ -244,8 +244,13 @@ void
|
||||||
xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nRectangles,
|
xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nRectangles,
|
||||||
xRectangle *pRectangles)
|
xRectangle *pRectangles)
|
||||||
{
|
{
|
||||||
XDrawRectangles(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
|
/* xRectangle and xcb_rectangle_t are defined in the same way, both matching
|
||||||
(XRectangle *) pRectangles, nRectangles);
|
the protocol layout, so we can directly typecast them */
|
||||||
|
xcb_poly_rectangle(xnestUpstreamInfo.conn,
|
||||||
|
xnestDrawable(pDrawable),
|
||||||
|
xnest_upstream_gc(pGC),
|
||||||
|
nRectangles,
|
||||||
|
(xcb_rectangle_t*)pRectangles);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue