Skip to content

Commit

Permalink
Update to image 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Mar 11, 2024
1 parent f53d6b8 commit 479fca2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
57 changes: 19 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ backtrace = "0.3"
criterion = { version = "0.5.1", default-features = false }
document-features = " 0.2.8"
glow = "0.13"
image = { version = "0.24", default-features = false }
image = { version = "0.25", default-features = false }
log = { version = "0.4", features = ["std"] }
nohash-hasher = "0.2"
parking_lot = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion crates/eframe/src/icon_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl IconDataExt for IconData {
image
.write_to(
&mut std::io::Cursor::new(&mut png_bytes),
image::ImageOutputFormat::Png,
image::ImageFormat::Png,
)
.map_err(|err| err.to_string())?;
Ok(png_bytes)
Expand Down
2 changes: 1 addition & 1 deletion crates/eframe/src/native/app_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn set_app_icon_windows(icon_data: &IconData) -> AppIconStatus {
if image_scaled
.write_to(
&mut std::io::Cursor::new(&mut image_scaled_bytes),
image::ImageOutputFormat::Png,
image::ImageFormat::Png,
)
.is_err()
{
Expand Down

0 comments on commit 479fca2

Please sign in to comment.