Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: jgraham@crc.skl.dnd.ca (Jay Graham) Newsgroups: comp.windows.x Subject: Dashed line problem Message-ID: <9103251719.AA27747@crc.skl.dnd.ca> Date: 25 Mar 91 16:19:21 GMT Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: The Internet Lines: 58 If I have line style set to LineOnOffDash, is there any reason why a call to XDrawArc will use the line style but a call to XDrawLine will not? Here are the concerned pieces of my code: Display *mydisplay; Window mywindow; /* Main window. */ Window SitWindow; /* Child of mywindow. */ static char dash[] = {20, 10}; unsigned long valuemask; XGCValues values; . . . valuemask = GCLineStyle | GCCapStyle | GCJoinStyle | GCDashOffset | GCDashList; values.line_style = LineOnOffDash; values.cap_style = CapNotLast; values.join_style = JoinMiter; values.dash_offset = 0; values.dashes = dash[0]; mygc = XCreateGC( mydisplay, mywindow, valuemask, &values ); . . . Start_Angle = 0; Draw_Thru_Angle = 64 * 360; XDrawLine(mydisplay, SitWindow, mygc, 12,60, 80,60); XDrawArc(mydisplay, SitWindow, mygc, 12, 60, /* x,y of rect.*/ 77*9, 77*9, /*width height of rect. */ Start_Angle, Draw_Thru_Angle); I also tried using XSetLineAttributes and XSetDashes but the results were the same. I am using X11R3. Thanks in advance. Jay Graham Software Kinetics Ltd., Ottawa, Ontario, Canada, jgraham@crc.skl.dnd.ca