Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing lines  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

zill

  • Newbie
  • *
  • Posts: 12
    • View Profile
Drawing lines
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Drawing lines
« Reply #1 on: September 26, 2009, 07:37:55 pm »
The rendering is not 100% accurate. It will probably be fixed in SFML 2.
Laurent Gomila - SFML developer