Skip to content

Commit

Permalink
Merge pull request #232 from hydra/fix-compilation-failure-1
Browse files Browse the repository at this point in the history
Fix compilation error 1.
  • Loading branch information
ecton authored Dec 19, 2024
2 parents 4ba6154 + cf0daa3 commit f6a4704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -285,7 +285,7 @@ impl<'clip, 'gfx, 'pass> Graphics<'clip, 'gfx, 'pass> {
text: impl Into<Drawable<&'a MeasuredText<Unit>, Unit>>,
origin: TextOrigin<Unit>,
) where
Unit: ScreenUnit,
Unit: ScreenUnit + Round,
{
let mut text = text.into();
text.opacity = Some(
Expand Down

0 comments on commit f6a4704

Please sign in to comment.