1
0
Fork 0
forked from wry/wry

render: don't require framebuffer to perform shm screencopies

This commit is contained in:
Julian Orth 2024-02-28 13:41:08 +01:00
parent 69d63b7e83
commit 9de63bddf3
12 changed files with 65 additions and 76 deletions

View file

@ -106,15 +106,16 @@ impl GfxFramebuffer for Framebuffer {
}
fn copy_to_shm(
&self,
self: Rc<Self>,
x: i32,
y: i32,
width: i32,
height: i32,
format: &Format,
_stride: i32,
format: &'static Format,
shm: &[Cell<u8>],
) -> Result<(), GfxError> {
self.copy_to_shm(x, y, width, height, format, shm);
(*self).copy_to_shm(x, y, width, height, format, shm);
Ok(())
}