diff options
| author | 2024-01-18 10:56:02 +0100 | |
|---|---|---|
| committer | 2024-01-18 10:56:02 +0100 | |
| commit | c929e6f5dd30044df4e7400ab633eaf0a53ce3dd (patch) | |
| tree | 021b60ed5f0eeee8e554291189e82da6adecc6e3 /tiny_skia/src/window | |
| parent | 3cf8f77d6537f9d864f4a554b2fff46676a761f6 (diff) | |
| download | iced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.tar.gz iced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.tar.bz2 iced-c929e6f5dd30044df4e7400ab633eaf0a53ce3dd.zip  | |
Use `Self::Surface` in `Compositor` implementors
Diffstat (limited to '')
| -rw-r--r-- | tiny_skia/src/window/compositor.rs | 6 | 
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],  | 
