From c597f3755b5480678053dce1f47bb11b98b43aa2 Mon Sep 17 00:00:00 2001 From: Taj Pereira Date: Thu, 29 May 2025 22:50:41 +0200 Subject: [PATCH] Update peniko version to 0.4.0 (#387) * Update peniko version * Fix no_std build --- Cargo.toml | 2 +- src/shape.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba84c54..2d9b75f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ default-features = false features = ["hardcoded-data"] [dependencies.peniko] -version = "0.3.1" +version = "0.4.0" optional = true [features] diff --git a/src/shape.rs b/src/shape.rs index e64d42e..43ba1fb 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -1565,7 +1565,7 @@ impl ShapeLine { } else { 0.0 }; - x_advance = x_advance.round(); + x_advance = math::roundf(x_advance); if self.rtl { x -= x_advance; }