display: Fix bug in Type 340 vector drawing routine.

In the lineTwoStep function, a typo makes vectors in two quadrants
drawn incorrectly.
This commit is contained in:
Lars Brinkhoff 2018-06-20 09:11:59 +02:00
parent c9dae318df
commit 0a430fee9a

View file

@ -405,7 +405,7 @@ lineTwoStep(int x0, int y0, int x1, int y1)
if (d > 0) { if (d > 0) {
lpoint(x0 += stepx, y0); lpoint(x0 += stepx, y0);
lpoint(x0 += stepx, y0 += stepy); lpoint(x0 += stepx, y0 += stepy);
lpoint(x1 -= stepy, y1); lpoint(x1 -= stepx, y1);
lpoint(x1 -= stepx, y1 -= stepy); lpoint(x1 -= stepx, y1 -= stepy);
d += incr1; d += incr1;
} else { } else {