mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Update image crate to 0.25 (#4160)
To not produce duplicating deps in Rerun (https://github.com/rerun-io/rerun/pull/5280) I suggest we wait with merging this until these crates have updated to `image` 0.25: * [x] [`arboard`](https://crates.io/crates/arboard) * [x] [`gltf`](https://crates.io/crates/gltf)
This commit is contained in:
@@ -154,9 +154,7 @@ egui-winit = { workspace = true, default-features = false, features = [
|
||||
"clipboard",
|
||||
"links",
|
||||
] }
|
||||
image = { version = "0.24", default-features = false, features = [
|
||||
"png",
|
||||
] } # Needed for app icon
|
||||
image = { workspace = true, features = ["png"] } # Needed for app icon
|
||||
winit = { workspace = true, default-features = false, features = ["rwh_06"] }
|
||||
|
||||
# optional native:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user