Sketch linebtr(): Compensate stepperY() by *3

This commit is contained in:
Petr Baudis 2011-12-27 23:06:54 +01:00
parent 2741f9da45
commit fb90d75347

View file

@ -337,7 +337,7 @@ void linebtr(int x1, int y1, int x2, int y2)
// setpixel(x1, y1, color); // setpixel(x1, y1, color);
if(e >= 0) { if(e >= 0) {
y1 += iny; y1 += iny;
stepperY.step(iny); stepperY.step(iny * 3);
e-= dx; e-= dx;
} }
e += dy; e += dy;
@ -358,7 +358,7 @@ void linebtr(int x1, int y1, int x2, int y2)
} }
e += dx; e += dx;
y1 += iny; y1 += iny;
stepperY.step(iny); stepperY.step(iny * 3);
} }
} }