softgpu: Fix lines drawn upward or leftward.

This commit is contained in:
Unknown W. Brackets 2014-01-19 23:32:53 -08:00
parent 8271ec1a55
commit 5a7d400f4b

View File

@ -1237,9 +1237,9 @@ void DrawLine(const VertexData &v0, const VertexData &v1)
int steps;
if (abs(dx) < abs(dy))
steps = dy / 16;
steps = abs(dy) / 16;
else
steps = dx / 16;
steps = abs(dx) / 16;
float xinc = (float)dx / steps;
float yinc = (float)dy / steps;