diff options
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/src/compositor.rs | 2 | ||||
-rw-r--r-- | renderer/src/custom.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/renderer/src/compositor.rs b/renderer/src/compositor.rs index 012ad3c0..3d0b3ad0 100644 --- a/renderer/src/compositor.rs +++ b/renderer/src/compositor.rs @@ -104,7 +104,7 @@ impl crate::graphics::Compositor for Compositor { } #[cfg(feature = "custom")] (Self::Custom(compositor), Surface::Custom(surface)) => { - compositor.configure_surface(surface, width, height); + compositor.configure_surface(surface.as_mut(), width, height); } #[allow(unreachable_patterns)] _ => panic!( diff --git a/renderer/src/custom.rs b/renderer/src/custom.rs index 680aa0b5..04090ccb 100644 --- a/renderer/src/custom.rs +++ b/renderer/src/custom.rs @@ -153,7 +153,7 @@ pub trait Compositor: std::any::Any { fn configure_surface( &mut self, - surface: &mut Box<dyn Surface>, + surface: &mut dyn Surface, width: u32, height: u32, ); |