Fix line function
Created by: ca1ek
Line function was hooooribbbly broken. It drawn lines but didn't do it actually at the places I wanted it to.
This is still kinda broken, but it actually draws what it's supposed to.
I tested it against my renderer and it works fine.
It can't draw perfectly straight lines that go from top to bottom or bottom to top. I will work on that.