Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
emmabritton committed Dec 19, 2023
1 parent 1f00c81 commit 6bebb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Graphics<'_> {
self.draw_image(xy, image);
} else {
let byte_count = image.width() * 4;
for (y,row) in image.bytes.chunks_exact(byte_count).enumerate() {
for (y, row) in image.bytes.chunks_exact(byte_count).enumerate() {
let addr = (((xy.y + y as isize) * self.width() as isize + xy.x) * 4) as usize;
unsafe {
let dst = self.buffer.as_mut_ptr().add(addr);
Expand Down

0 comments on commit 6bebb33

Please sign in to comment.