SFML community forums

Help => Graphics => Topic started by: zill on September 26, 2009, 07:35:40 pm

Title: Drawing lines
Post by: zill on September 26, 2009, 07:35:40 pm
The code is for PySFML.

When I draw two lines:
Code: [Select]

l1 = sf.Shape.Line(x, y, x + w, x + h, 1.0, color, 0.0, color)
l2 = sf.Shape.Line(x, y, x + w, x - h, 1.0, color, 0.0, color)


The lines do not start at the same (x,y) coordinate.  The second line is draw exactly 1 pixel above the first line.  I don't see anywhere in the code that would make this happen.  Why aren't the lines being drawn from the same (x,y) coordinate?
Title: Drawing lines
Post by: Laurent on September 26, 2009, 07:37:55 pm
The rendering is not 100% accurate. It will probably be fixed in SFML 2.