aboutsummaryrefslogtreecommitdiff
path: root/src/rasterizer/line.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rasterizer/line.rs')
-rw-r--r--src/rasterizer/line.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rasterizer/line.rs b/src/rasterizer/line.rs
index 7a646f4..17836d9 100644
--- a/src/rasterizer/line.rs
+++ b/src/rasterizer/line.rs
@@ -109,7 +109,7 @@ pub fn draw_line<DB: DrawingBackend, S: BackendStyle>(
y += grad;
}
- if to.0 >= batch_limit + 1 && y < f64::from(to.1) {
+ if to.0 > batch_limit && y < f64::from(to.1) {
let x = batch_limit as i32 + 1;
if 1.0 + y.floor() - y > 1e-5 {
check_result!(put_pixel((x, y as i32), 1.0 + y.floor() - y));