diff options
author | 2023-06-27 22:06:32 +0200 | |
---|---|---|
committer | 2023-06-27 22:06:32 +0200 | |
commit | 2f886b0e4e1927ead031b1256026d53f48d5f8eb (patch) | |
tree | 3b80e59ed2f16215b54ddda6162fe11d94366c9b /tiny_skia | |
parent | bf7d636ebf90b6eba3ab6e4c718439e382ce9ec0 (diff) | |
download | iced-2f886b0e4e1927ead031b1256026d53f48d5f8eb.tar.gz iced-2f886b0e4e1927ead031b1256026d53f48d5f8eb.tar.bz2 iced-2f886b0e4e1927ead031b1256026d53f48d5f8eb.zip |
Fix import consistency in `iced_tiny_skia`
Diffstat (limited to 'tiny_skia')
-rw-r--r-- | tiny_skia/src/backend.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs index 86eccdda..87738174 100644 --- a/tiny_skia/src/backend.rs +++ b/tiny_skia/src/backend.rs @@ -1,5 +1,3 @@ -use tiny_skia::{Mask, Pixmap, PixmapPaint}; - use crate::core::text; use crate::core::{Background, Color, Font, Point, Rectangle, Size, Vector}; use crate::graphics::backend; @@ -256,13 +254,13 @@ impl Backend { } else { // Draw corners that have too small border radii as having no border radius, // but mask them with the rounded rectangle with the correct border radius. - let mut temp_pixmap = Pixmap::new( + let mut temp_pixmap = tiny_skia::Pixmap::new( bounds.width as u32, bounds.height as u32, ) .unwrap(); - let mut quad_mask = Mask::new( + let mut quad_mask = tiny_skia::Mask::new( bounds.width as u32, bounds.height as u32, ) @@ -314,7 +312,7 @@ impl Backend { bounds.x as i32, bounds.y as i32, temp_pixmap.as_ref(), - &PixmapPaint::default(), + &tiny_skia::PixmapPaint::default(), transform, clip_mask, ); |