From cf0daa3253691b1ef6748fe84ffae4c8e5e4233f Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Fri, 6 Dec 2024 12:55:07 +0100 Subject: [PATCH] Fix compilation error. --- src/graphics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics.rs b/src/graphics.rs index 1f70f8850..62def7693 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -3,7 +3,7 @@ use std::ops::{Deref, DerefMut}; use figures::units::{Px, UPx}; use figures::{ - self, Fraction, IntoSigned, IntoUnsigned, Point, Rect, ScreenScale, ScreenUnit, Size, Zero, + self, Fraction, IntoSigned, IntoUnsigned, Point, Rect, Round, ScreenScale, ScreenUnit, Size, Zero }; use kempt::{map, Map}; use kludgine::cosmic_text::{fontdb, FamilyOwned, FontSystem}; @@ -285,7 +285,7 @@ impl<'clip, 'gfx, 'pass> Graphics<'clip, 'gfx, 'pass> { text: impl Into, Unit>>, origin: TextOrigin, ) where - Unit: ScreenUnit, + Unit: ScreenUnit + Round, { let mut text = text.into(); text.opacity = Some(