From: Ethan M. <merritt@u.washington.edu> - 2004-08-12 16:29:49
|
On Thursday 12 August 2004 03:44 am, Dave Denholm wrote: > if (type != LineSolid || width != 0) { /* select solid line */ > XSetLineAttributes(dpy, gc, 0, LineSolid, CapButt, JoinBevel); > } > > - try setting the linewidth param to 1 in the XSetLineAttributes call. Thanks for the tip. The change I actually made was to unconditionally call /* Force line type to solid, with round ends */ XSetLineAttributes(dpy, *current_gc, plot->lwidth, LineSolid, CapRound, JoinRound); I was under the impression that passing plot->lwidth was essentially a no-op, since that should have been the current state anyhow. I made it unconditional in order to force the CapRound attribute. But if I understand your summary of X oddities, it may actually be the explicit linewidth rather than the CapRound that causes the observed problem to go away. Daniel, do you care enough to investigate further? I'm happy just to leave it as it is, since it seems to work. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |