summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:56:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:56:02 +0100
commitc929e6f5dd30044df4e7400ab633eaf0a53ce3dd (patch)
tree021b60ed5f0eeee8e554291189e82da6adecc6e3 /tiny_skia
parent3cf8f77d6537f9d864f4a554b2fff46676a761f6 (diff)
downloadiced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.tar.gz
iced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.tar.bz2
iced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.zip
Use `Self::Surface` in `Compositor` implementors
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/window/compositor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tiny_skia/src/window/compositor.rs b/tiny_skia/src/window/compositor.rs
index 17d21100..781ed8a5 100644
--- a/tiny_skia/src/window/compositor.rs
+++ b/tiny_skia/src/window/compositor.rs
@@ -50,7 +50,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
window: W,
width: u32,
height: u32,
- ) -> Surface {
+ ) -> Self::Surface {
let window = softbuffer::Surface::new(
&self.context,
Box::new(window.clone()) as _,
@@ -73,7 +73,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
fn configure_surface(
&mut self,
- surface: &mut Surface,
+ surface: &mut Self::Surface,
width: u32,
height: u32,
) {
@@ -100,7 +100,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
fn present<T: AsRef<str>>(
&mut self,
renderer: &mut Self::Renderer,
- surface: &mut Surface,
+ surface: &mut Self::Surface,
viewport: &Viewport,
background_color: Color,
overlay: &[T],