Skip to content

Commit 2f886b0

Browse files
committed
Fix import consistency in iced_tiny_skia
1 parent bf7d636 commit 2f886b0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tiny_skia/src/backend.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use tiny_skia::{Mask, Pixmap, PixmapPaint};
2-
31
use crate::core::text;
42
use crate::core::{Background, Color, Font, Point, Rectangle, Size, Vector};
53
use crate::graphics::backend;
@@ -256,13 +254,13 @@ impl Backend {
256254
} else {
257255
// Draw corners that have too small border radii as having no border radius,
258256
// but mask them with the rounded rectangle with the correct border radius.
259-
let mut temp_pixmap = Pixmap::new(
257+
let mut temp_pixmap = tiny_skia::Pixmap::new(
260258
bounds.width as u32,
261259
bounds.height as u32,
262260
)
263261
.unwrap();
264262

265-
let mut quad_mask = Mask::new(
263+
let mut quad_mask = tiny_skia::Mask::new(
266264
bounds.width as u32,
267265
bounds.height as u32,
268266
)
@@ -314,7 +312,7 @@ impl Backend {
314312
bounds.x as i32,
315313
bounds.y as i32,
316314
temp_pixmap.as_ref(),
317-
&PixmapPaint::default(),
315+
&tiny_skia::PixmapPaint::default(),
318316
transform,
319317
clip_mask,
320318
);

0 commit comments

Comments
 (0)