mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fix deprecation warning in the window icon example
This commit is contained in:
parent
77d5d20391
commit
f79efec7ef
|
@ -49,7 +49,7 @@ fn load_icon(path: &Path) -> Icon {
|
|||
let (icon_rgba, icon_width, icon_height) = {
|
||||
let image = image::open(path)
|
||||
.expect("Failed to open icon path")
|
||||
.into_rgba();
|
||||
.into_rgba8();
|
||||
let (width, height) = image.dimensions();
|
||||
let rgba = image.into_raw();
|
||||
(rgba, width, height)
|
||||
|
|
Loading…
Reference in a new issue