Skip to content

Commit

Permalink
unpack (x, y)
Browse files Browse the repository at this point in the history
  • Loading branch information
cospectrum committed Apr 8, 2024
1 parent e4d7549 commit 8576cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawing/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'a, P: Pixel> Iterator for BresenhamLinePixelIterMut<'a, P> {
self.iter
.next()
.map(|p| clamp_point_i32(p, self.image))
.map(|p| self.image.get_pixel_mut(p.0 as u32, p.1 as u32))
.map(|(x, y)| self.image.get_pixel_mut(x as u32, y as u32))
.map(|p| unsafe { transmute(p) })
}
}
Expand Down

0 comments on commit 8576cf4

Please sign in to comment.