XForms: Stupid question about fl_line

Alberto Barsella (Alberto.Barsella@univ-lille1.fr)
Sun, 6 Dec 1998 15:31:01 +0100 (MET)

# To subscribers of the xforms list from Alberto Barsella <Alberto.Barsella@univ-lille1.fr> :

Hi all,
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);
fl_line(ob->x+xmin, ob->y+hahe+4, ob->x+xmin-4, ob->y+hahe, FL_BLACK);
fl_line(ob->x+xmin-4, ob->y+hahe, ob->x+xmin, ob->y+hahe-4, FL_BLACK);
fl_line(ob->x+xmin, ob->y+hahe-4, ob->x+xmin+4, ob->y+hahe, FL_BLACK);

xmin is the position inside the objet, while 'hahe' means 'half height'
and is initialized: hahe = ob->h / 2.

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?

Thankx,
Alberto

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