(!1654) Xnest: replace XDrawRectangles() by xcb_poly_rectangle()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									f09d43cad5
								
							
						
					
					
						commit
						deb33ced21
					
				| 
						 | 
				
			
			@ -244,8 +244,13 @@ void
 | 
			
		|||
xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nRectangles,
 | 
			
		||||
                   xRectangle *pRectangles)
 | 
			
		||||
{
 | 
			
		||||
    XDrawRectangles(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
 | 
			
		||||
                    (XRectangle *) pRectangles, nRectangles);
 | 
			
		||||
    /* xRectangle and xcb_rectangle_t are defined in the same way, both matching
 | 
			
		||||
       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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue