From 700096f5797445da254f241c9a191d5f94565286 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 6 Jun 2024 05:08:20 -0400 Subject: [PATCH] wgl: bump `windows-sys` to 0.52 --- CHANGELOG.md | 1 + glutin/Cargo.toml | 2 +- glutin/src/api/wgl/config.rs | 4 ++-- glutin_egl_sys/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce040a769c..98f44731b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - **Breaking:** updated `raw-window-handle` dependency to `0.6`. - Bump MSRV from `1.65` to `1.70`. +- Bump `windows-sys` from `0.48.0` to `0.52.0`. # Version 0.31.3 diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index 5cdeb83ade..be3a96465d 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -30,7 +30,7 @@ glutin_egl_sys = { version = "0.6.0", path = "../glutin_egl_sys", optional = tru glutin_wgl_sys = { version = "0.5.0", path = "../glutin_wgl_sys", optional = true } [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.48" +version = "0.52" features = [ "Win32_Foundation", "Win32_Graphics_Gdi", diff --git a/glutin/src/api/wgl/config.rs b/glutin/src/api/wgl/config.rs index 4f6a368b29..9c8448c89c 100644 --- a/glutin/src/api/wgl/config.rs +++ b/glutin/src/api/wgl/config.rs @@ -110,7 +110,7 @@ impl Display { cDepthBits: template.depth_size, cStencilBits: template.stencil_size, cAuxBuffers: 0, - iLayerType: gl::PFD_MAIN_PLANE, + iLayerType: gl::PFD_MAIN_PLANE as u8, bReserved: 0, dwLayerMask: 0, dwVisibleMask: 0, @@ -517,7 +517,7 @@ pub(crate) fn choose_dummy_pixel_format(hdc: HDC) -> Result<(i32, PIXELFORMATDES cDepthBits: 24, cStencilBits: 8, cAuxBuffers: 0, - iLayerType: gl::PFD_MAIN_PLANE, + iLayerType: gl::PFD_MAIN_PLANE as u8, bReserved: 0, dwLayerMask: 0, dwVisibleMask: 0, diff --git a/glutin_egl_sys/Cargo.toml b/glutin_egl_sys/Cargo.toml index a7c46bbc7d..579324082f 100644 --- a/glutin_egl_sys/Cargo.toml +++ b/glutin_egl_sys/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" gl_generator = "0.14" [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.48" +version = "0.52" features = [ "Win32_Foundation", "Win32_Graphics_Gdi",