diff --git a/qemu-rdw/.Cargo.toml.swp b/qemu-rdw/.Cargo.toml.swp deleted file mode 100644 index 9129121..0000000 Binary files a/qemu-rdw/.Cargo.toml.swp and /dev/null differ diff --git a/qemu-rdw/src/display_qemu.rs b/qemu-rdw/src/display_qemu.rs index 84b590a..1780a9c 100644 --- a/qemu-rdw/src/display_qemu.rs +++ b/qemu-rdw/src/display_qemu.rs @@ -150,8 +150,19 @@ mod imp { log::debug!("Console event: {:?}", evt); match evt { Scanout(s) => { + if s.format != 0x20020888 { + log::warn!("Format not yet supported: {:X}", s.format); + return Continue(true); + } + widget.set_display_size(Some((s.width as _, s.height as _))); + widget.update_area(0, 0, s.width as _, s.height as _, s.stride as _, &s.data); } Update(u) => { + if u.format != 0x20020888 { + log::warn!("Format not yet supported: {:X}", u.format); + return Continue(true); + } + widget.update_area(u.x as _, u.y as _, u.w as _, u.h as _, u.stride as _, &u.data); } ScanoutDMABUF(s) => { widget.set_display_size(Some((s.width as _, s.height as _)));