phils@ATHENA.MIT.EDU (Philip Thompson) (11/11/89)
Quick question: What is the maximum number of lines one can draw in a single XDrawLines call? We are trying to write a mapping program and are running into problems with XDrawLines and XFillPolygon. We are running into polygons with up to 5000 vertices and holes in them. This couldn't possibly be a source of our problems or could it? Philip Thompson Dept. of Architecture and Planning MIT
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (11/11/89)
What is the maximum number of lines one can draw in a single XDrawLines call? It depends on the server, based on XMaxRequestSize(). All servers should accept at least 4093 points in a PolyLine, 4092 points in a FillPoly, and 2046 segments in a PolySegment. XDrawLines points: XMaxRequestSize(dpy) - 3 XFillPolygon points: XMaxRequestSize(dpy) - 4 XDrawSegments segments: (XMaxRequestSize(dpy) - 3) / 2