From 4976e4ac4bc4a420aa0d76834dfa89ca06df3b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Aug 2023 12:35:27 +0300 Subject: [PATCH] examples: Update to windows 0.51 Part-of: --- examples/Cargo.toml | 2 +- examples/src/bin/overlay-composition-d2d.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 986a42ca1..11b19f3e0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -40,7 +40,7 @@ memfd = { version = "0.6", optional = true } uds = { version = "0.4", optional = true } [target.'cfg(windows)'.dependencies] -windows = { version = "0.48", features=["Win32_Graphics_Direct3D11", +windows = { version = "0.51", features=["Win32_Graphics_Direct3D11", "Win32_Foundation", "Win32_Graphics_Direct3D", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Direct2D", "Win32_Graphics_Direct2D_Common", "Win32_Graphics_DirectWrite", diff --git a/examples/src/bin/overlay-composition-d2d.rs b/examples/src/bin/overlay-composition-d2d.rs index 420daded5..1e9aa03a2 100644 --- a/examples/src/bin/overlay-composition-d2d.rs +++ b/examples/src/bin/overlay-composition-d2d.rs @@ -92,18 +92,18 @@ fn create_pipeline() -> Result { DWriteCreateFactory::(DWRITE_FACTORY_TYPE_SHARED).unwrap(); let text_format = dwrite_factory .CreateTextFormat( - windows::w!("Arial"), + windows::core::w!("Arial"), None, DWRITE_FONT_WEIGHT_BOLD, DWRITE_FONT_STYLE_NORMAL, DWRITE_FONT_STRETCH_NORMAL, 32f32, - windows::w!("en-us"), + windows::core::w!("en-us"), ) .unwrap(); let text_layout = dwrite_factory .CreateTextLayout( - windows::w!("GStreamer").as_wide(), + windows::core::w!("GStreamer").as_wide(), &text_format, // Size will be updated later on "caps-changed" signal 800f32,