fast image operations
Diffstat (limited to 'src/drawing/line.rs')
| -rw-r--r-- | src/drawing/line.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawing/line.rs b/src/drawing/line.rs index f180680..24c0df4 100644 --- a/src/drawing/line.rs +++ b/src/drawing/line.rs @@ -14,7 +14,7 @@ impl<T: AsMut<[u8]> + AsRef<[u8]>, const CHANNELS: usize> Image<T, CHANNELS> { .flatten() .for_each(|(x, y)| { // SAFETY: x, y are clipped to self. - unsafe { self.set_pixel(x, y, color) } + unsafe { self.set_pixel(x, y, &color) } }); } |