mirror of
https://github.com/brmlab/lasic.git
synced 2025-06-08 09:14:01 +02:00
Sketch linebtr(): Compensate stepperY() by *3
This commit is contained in:
parent
2741f9da45
commit
fb90d75347
1 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ void linebtr(int x1, int y1, int x2, int y2)
|
|||
// setpixel(x1, y1, color);
|
||||
if(e >= 0) {
|
||||
y1 += iny;
|
||||
stepperY.step(iny);
|
||||
stepperY.step(iny * 3);
|
||||
e-= dx;
|
||||
}
|
||||
e += dy;
|
||||
|
@ -358,7 +358,7 @@ void linebtr(int x1, int y1, int x2, int y2)
|
|||
}
|
||||
e += dx;
|
||||
y1 += iny;
|
||||
stepperY.step(iny);
|
||||
stepperY.step(iny * 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue