From 70a3a97d48a74b6bebb2cf9fbb1cf4a5b2754235 Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Thu, 28 Apr 2022 11:52:50 +0300 Subject: [PATCH] update windows crate dep --- abletk-common/Cargo.toml | 2 +- abletk-direct2d/Cargo.toml | 2 +- abletk-direct2d/src/brush.rs | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/abletk-common/Cargo.toml b/abletk-common/Cargo.toml index f292f86..c77985a 100755 --- a/abletk-common/Cargo.toml +++ b/abletk-common/Cargo.toml @@ -10,4 +10,4 @@ raw-window-handle = "0.4.3" [target.'cfg(windows)'.dependencies] abletk-direct2d = { path = "../abletk-direct2d" } -windows = { version = "0.35.0", features = ["Win32_Graphics_Direct2D_Common"] } +windows = { version = "0.36.1", features = ["Win32_Graphics_Direct2D_Common"] } diff --git a/abletk-direct2d/Cargo.toml b/abletk-direct2d/Cargo.toml index bed950b..0235056 100755 --- a/abletk-direct2d/Cargo.toml +++ b/abletk-direct2d/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" raw-window-handle = "0.4.3" [dependencies.windows] -version = "0.35.0" +version = "0.36.1" features = [ "Foundation_Numerics", "Win32_System_Com", diff --git a/abletk-direct2d/src/brush.rs b/abletk-direct2d/src/brush.rs index 9aca792..699aa91 100755 --- a/abletk-direct2d/src/brush.rs +++ b/abletk-direct2d/src/brush.rs @@ -23,13 +23,7 @@ pub(crate) const DEFAULT_BRUSH_COLOR: D2D1_COLOR_F = D2D1_COLOR_F { pub(crate) const DEFAULT_BRUSH_PROPERTIES: D2D1_BRUSH_PROPERTIES = D2D1_BRUSH_PROPERTIES { opacity: 1.0, - // Matrix3x2::identity() is not a const fn but it could be - // - // I (TheOddGarlic) sent windows-rs a PR and it got merged but now we wait - // for it to be included in the next release - transform: Matrix3x2 { - M11: 1.0, M12: 0.0, M21: 0.0, M22: 1.0, M31: 0.0, M32: 0.0 - } + transform: Matrix3x2::identity(), };