mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-07 09:00:40 +00:00
softgpu: Fix lines drawn upward or leftward.
This commit is contained in:
parent
8271ec1a55
commit
5a7d400f4b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user