tags:

views:

20

answers:

0

I am using Xlib to draw a line between two points which I have taken input from mouse click of the user. I use drawline and fillarc functions. Fillarc for marking start and end points. As soon as I take an input I draw the line between the two points. The problem is that the coordinates I give do not appear to be at the center , rather the line is drawn on the corners of the circles and it also extends a bit

Plz help!!

Thanks in advance