Re: XForms: Stupid question about fl_line

Steve Lamont (spl@szechuan.ucsd.edu)
Sun, 6 Dec 98 09:05:44 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> in the handler routine of an object I created I use fl_line to
> draw a small, black "diamond" with the following calls:
>
> fl_line(ob->x+xmin+4, ob->y+hahe, ob->x+xmin, ob->y+hahe+4, FL_BLACK);
> [...]
> The problem is that I don't get a "full" diamond, there's a pixel missing
> at the right corner (the one at xmin+4, hahe), like it was not drawn, or
> it was drawn and then erased.
> Any suggestions besides going back to XDrawLine?

fl_line() nothing other than a wrapper around XDrawLine() so using
XDrawLine() should produce the same results.

Are you doing anything with the GC (Graphics Context), perhaps
changing the line width? If you use a non-zero line width, this can
cause strangenesses.

spl
_________________________________________________
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/