From 0b8f10d91d410200635b013e8109b0f6bf47ecbe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:11:53 -0800 Subject: [PATCH] build(deps): update windows-sys requirement from 0.48.0 to 0.52.0 * build(deps): update windows-sys requirement from 0.48.0 to 0.52.0 Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs) to permit the latest version. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](https://github.com/microsoft/windows-rs/compare/0.48.0...0.52.0) --- updated-dependencies: - dependency-name: windows-sys dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Fix the clippy warning Signed-off-by: John Nunley --------- Signed-off-by: dependabot[bot] Signed-off-by: John Nunley Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John Nunley --- Cargo.toml | 2 +- src/win32.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,