This commit is contained in:
2024-11-29 10:58:17 +01:00
parent 9289a829be
commit 26a8924bc8
5 changed files with 15 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ impl Default for BoundSurface<Rc<RefCell<ShaderBinding>>>{
impl Surface for BoundSurface<Rc<RefCell<ShaderBinding>>> {
fn rect(&self) -> Rectangle<Virtual> {
self.binding.borrow().rect.clone()
self.binding.borrow().rect
}
fn with_shader<F: FnMut(&dyn Shader)>(&self, mut f: F) {
@@ -64,7 +64,7 @@ impl Surface for BoundSurface<Rc<RefCell<ShaderBinding>>> {
}
fn set_rect(&mut self, rect: &Rectangle<Virtual>) {
self.binding.borrow_mut().rect = rect.clone();
self.binding.borrow_mut().rect = *rect;
}
fn opacity(&self) -> u8 {