Wrong coordinates in SDL

I lost myself … in that case, what sharing has a line of 1?

This should not be drawn, and it is.

A line with ‘negative length’ can be thought of as a line in the opposite direction (dx −dx, dy −dy), in which case it is correct to draw it.

It should be treated like that, but it doesn’t work out like that.