electronstudio / raylib-python-cffi

Python CFFI bindings for Raylib
http://electronstudio.github.io/raylib-python-cffi
Eclipse Public License 2.0
159 stars 31 forks source link

Coordinate origin for line drawing is offseted. #132

Closed 2ant closed 4 months ago

2ant commented 5 months ago

The origin for lines is "offset" by one. I have to draw at 1 for the line to show in the first pixel on screen(0).

this works: 
draw_line(1, 0, 0, 450, RED)
draw_line(0,1,800, 0,RED)

This doesn't:
draw_line(0, 0, 0, 450, RED)
draw_line(0,0,800, 0,RED)
electronstudio commented 5 months ago

This sounds like an issue with Raylib. Raylib-Python-CFFI is just a binding to Raylib. It doesn’t change how Raylib works. So you would have to report it to Raylib.