From 7a687105e32decb7aa40777b63585a9e411f1a32 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 6 Apr 2023 08:05:18 -0700 Subject: [PATCH] Update `windows-sys` and `image` --- Cargo.toml | 6 +++--- src/win32.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 11f7db2..f49453f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ x11rb = { version = "0.11.0", features = ["allow-unsafe-code", "dl-libxcb", "shm fastrand = { version = "1.8.0", optional = true } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.45.0" +version = "0.48.0" features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"] [target.'cfg(target_os = "macos")'.dependencies] @@ -65,14 +65,14 @@ instant = "0.1.12" winit = "0.28.1" [dev-dependencies.image] -version = "0.23.14" +version = "0.24.6" # Disable rayon on web default-features = false features = ["jpeg"] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] # Turn rayon back on everywhere else; creating the separate entry resets the features to default. -image = "0.23.14" +image = "0.24.6" rayon = "1.5.1" [workspace] diff --git a/src/win32.rs b/src/win32.rs index 8d9a350..a6b2e73 100644 --- a/src/win32.rs +++ b/src/win32.rs @@ -51,7 +51,7 @@ impl Buffer { biHeight: -height.get(), biPlanes: 1, biBitCount: 32, - biCompression: Gdi::BI_BITFIELDS, + biCompression: Gdi::BI_BITFIELDS as u32, biSizeImage: 0, biXPelsPerMeter: 0, biYPelsPerMeter: 0,