zjmw0a@apctrc.trc.amoco.com (Joe M. Wade) (06/14/89)
I have uncovered what appears to be a bug in XDrawLines. Hopefully this has not been discussed before. If I pass XDrawLines a set of points where there is a duplicate point, the line is never drawn. An example set of points I used is: xypoint[0].x = 150; xypoint[0].y = 150; xypoint[1].x = 150; xypoint[1].y = 150; xypoint[2].x = 350; xypoint[2].y = 150; xypoint[3].x = 350; xypoint[3].y = 350; xypoint[4].x = 150; xypoint[4].y = 350; xypoint[5].x = 150; xypoint[5].y = 150; A call of XDrawLines(display,window,gc,xypoint,6,CoordModeOrigin) results in no line being drawn, whereas XDrawLines(display,window,gc,&xypoint[1],5, CoordModeOrigin) will get it. Is there something I can specify in the gc to get around this? Is this a known bug? Pertinent information is ( Sun 3/60, OS4.0, X11R3) Thanks. **************************************************************** * Joe M. Wade * * Amoco Research Center * * Tulsa, OK *
rws@EXPO.LCS.MIT.EDU (06/16/89)
If I pass XDrawLines a set of points where there is a duplicate point, the line is never drawn. Is this a known bug? Yup. Fixed in our development system. It's a bug in the ddx/mi code (I assume you were either drawing to the color screen, or were using a line width other than zero). Getting a public fix out is not on our priority list. Is there something I can specify in the gc to get around this? If you're on the monochrome screen, a line-width of zero will work. Otherwise, you're hosed.