diff --git a/CHANGELOG.md b/CHANGELOG.md index 97e883e730..d7325636ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - 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 747a4afbbd..a48d7a2ee4 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 ad5fabbe8d..4b1f924e3b 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",