(!1654) Xnest: replace XDrawLines() by xcb_poly_line()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									78f10a9a9c
								
							
						
					
					
						commit
						17686bf085
					
				|  | @ -217,8 +217,14 @@ void | ||||||
| xnestPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, | xnestPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, | ||||||
|                DDXPointPtr pPoints) |                DDXPointPtr pPoints) | ||||||
| { | { | ||||||
|     XDrawLines(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC), |     /* xPoint and xcb_segment_t are defined in the same way, both matching
 | ||||||
|                (XPoint *) pPoints, nPoints, mode); |        the protocol layout, so we can directly typecast them */ | ||||||
|  |     xcb_poly_line(xnestUpstreamInfo.conn, | ||||||
|  |                   mode, | ||||||
|  |                   xnestDrawable(pDrawable), | ||||||
|  |                   xnest_upstream_gc(pGC), | ||||||
|  |                   nPoints, | ||||||
|  |                   (xcb_point_t*)pPoints); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue