softgpu: Don't redraw every pixel of a line 16x.

Fixes the insane slowness when processing lines.  Now it's just regular
super slow.
This commit is contained in:
Unknown W. Brackets 2014-01-19 23:28:34 -08:00
parent 4de20258eb
commit 74c1b21b59

View File

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