Skip to content

Commit

Permalink
chore: stop using deprecated image::GenericImageView::bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Mar 23, 2024
1 parent c493354 commit 746d8d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/graphics/src/tiles/atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ fn write_texture_region<P>(
P: image::Pixel,
P::Subpixel: bytemuck::Pod,
{
let (x, y, width, height) = image.bounds();
let (x, y) = image.offsets();
let (width, height) = image.dimensions();
let bytes = bytemuck::cast_slice(image.inner().as_raw());

let inner_width = image.inner().width();
Expand Down

0 comments on commit 746d8d0

Please sign in to comment.