From da6dc7243204ba6ca6fb3c710c27e67b8b786708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Mon, 15 May 2023 12:32:18 +0400 Subject: [PATCH] qemu-rdw: update to RDW API changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- qemu-rdw/src/display.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qemu-rdw/src/display.rs b/qemu-rdw/src/display.rs index 4e620ff..b937a5f 100644 --- a/qemu-rdw/src/display.rs +++ b/qemu-rdw/src/display.rs @@ -261,7 +261,7 @@ mod imp { ScanoutD3dTexture2d(s) => { log::debug!("{s:?}"); this.obj().set_display_size(Some((s.w as _, s.h as _))); - this.obj().set_d3d11_texture2d_scanout(rdw::RdwD3d11Texture2dScanout { + this.obj().set_d3d11_texture2d_scanout(Some(rdw::RdwD3d11Texture2dScanout { handle: s.handle as _, tex_width: s.tex_width, tex_height: s.tex_height, @@ -270,11 +270,13 @@ mod imp { y: s.y, w: s.w, h: s.h, - }); + })); } #[cfg(windows)] UpdateD3dTexture2d { wait_tx, .. } => { + this.obj().set_d3d11_texture2d_can_acquire(true); this.obj().render(); + this.obj().set_d3d11_texture2d_can_acquire(false); let _ = wait_tx.send(()); } #[cfg(unix)]