(!1654) Xnest: replace XDrawArcs() by xcb_poly_arc()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									6c301f468b
								
							
						
					
					
						commit
						5c4e17cf74
					
				| 
						 | 
					@ -256,8 +256,13 @@ xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nRectangles,
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
xnestPolyArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc * pArcs)
 | 
					xnestPolyArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc * pArcs)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    XDrawArcs(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
 | 
					    /* xArc and xcb_arc_t are defined in the same way, both matching
 | 
				
			||||||
              (XArc *) pArcs, nArcs);
 | 
					       the protocol layout, so we can directly typecast them */
 | 
				
			||||||
 | 
					    xcb_poly_arc(xnestUpstreamInfo.conn,
 | 
				
			||||||
 | 
					                 xnestDrawable(pDrawable),
 | 
				
			||||||
 | 
					                 xnest_upstream_gc(pGC),
 | 
				
			||||||
 | 
					                 nArcs,
 | 
				
			||||||
 | 
					                 (xcb_arc_t*)pArcs);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue