fast image operations
Diffstat (limited to 'src/drawing/poly.rs')
| -rw-r--r-- | src/drawing/poly.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawing/poly.rs b/src/drawing/poly.rs index 2ef27ed..5a67a07 100644 --- a/src/drawing/poly.rs +++ b/src/drawing/poly.rs @@ -59,7 +59,7 @@ impl<T: AsMut<[u8]> + AsRef<[u8]>, const CHANNELS: usize> Image<T, CHANNELS> { for x in from..=to { // SAFETY: bounds are checked - unsafe { self.set_pixel(x as u32, y as u32, c) }; + unsafe { self.set_pixel(x as u32, y as u32, &c) }; } } } |