> # To subscribers of the xforms list from Yann Guichoux <guichoux@shom.fr> :
>
> [snip my problem with fl_line]
>
> I had the same kind of problem...it was coming from the cap_style
> parameter
> try this :
>
> XSetLineAttributes(dpy,gc,1,LineSolid,CapProjecting,joinRound)
It worked. I'm not sure I did it the "right" way, because I don't have any
GC to work on while using fl_line. Anyway, since I had tried to go back to
XDrawLine and had found that everything was fine EXCEPT if I did the
mistake of using XForms' gc[0] (instead of gc[8]), what I did was to add
a:
GC gc = fl_state[fl_get_vclass()].gc[0];
XSetLineAttributes(fl_get_display(),gc,1,LineSolid,CapProjecting,JoinRound);
at the beginning of my FL_DRAW handler. It is legal to alter gc[0] and
not restore it to the previous state?
Bye,
Alberto
PS: if you want to see the output check
http://mokulen.univ-lille1.fr/games/stars/starana/starana-planetstatus.gif
-- Alberto BARSELLA PGP fingerprint = 13 3F 22 D2 0B 0A D3 25 F1 89 FE B5 82 AD 75 2A ** "Beliefs are dangerous. Beliefs allow the mind to stop functioning. A non-functioning mind is clinically dead. Believe in nothing..." **
_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html XForms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/