Skip to content

Commit

Permalink
Fixed incorrect pixel position in Image::modify_pixels_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
a16547 authored and etemesi254 committed Jun 24, 2024
1 parent f44ce9d commit 321c1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/zune-image/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl Image {
}
for y in 0..height {
for x in 0..width {
let position = y * height + x;
let position = y * width + x;

// This must be kept in sync with
// MAX_CHANNELS, we can't do it another way
Expand Down

0 comments on commit 321c1fe

Please sign in to comment.