drawLine sortCoords not working
lilyzeiset opened this issue ยท 5 comments
This is rather embarassing ๐ I looked over the code a few times even now and I can't see what could've caused this, so guess I should try and wake up a little more first
I remember when I originally wrote #570, I stared at this code for a VERY long time trying to figure out what it does:
I think that the confusion comes from the fact that the old code only actually attempts to swap the X coordinates, swapping the Y simultaneously. My code swaps both independently (which is the way I think it should work). The line drawing function probably relies on this behaviour implicitly, causing the line to draw upside down?