fix a potential divide by zero exception. if point1 and point2 are equal, both dx and dy will be 0. in that event, we'll just render a single pixel and leave.
fix a copy/paste error in util. woops :D