jgraham@crc.skl.dnd.ca (Jay Graham) (03/26/91)
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