diff --git a/Cargo.toml b/Cargo.toml index 597f3d9..21ceab0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ wayland-sys = "0.31.0" x11rb = { version = "0.12.0", features = ["allow-unsafe-code", "shm"], optional = true } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.48.0" +version = "0.52.0" features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"] [target.'cfg(target_os = "macos")'.dependencies] diff --git a/src/win32.rs b/src/win32.rs index a703aad..4263d1d 100644 --- a/src/win32.rs +++ b/src/win32.rs @@ -53,7 +53,7 @@ impl Buffer { biHeight: -height.get(), biPlanes: 1, biBitCount: 32, - biCompression: Gdi::BI_BITFIELDS as u32, + biCompression: Gdi::BI_BITFIELDS, biSizeImage: 0, biXPelsPerMeter: 0, biYPelsPerMeter: 0,