mirror of
https://github.com/rustdesk/qemu-display.git
synced 2025-07-01 15:25:29 +00:00
qemu-rdw: use the shared library
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
8c5fa2a4f9
commit
cbe0cf891c
@ -13,7 +13,7 @@ once_cell = "1.5"
|
|||||||
zbus = { version = "2.0.0-beta.7" }
|
zbus = { version = "2.0.0-beta.7" }
|
||||||
qemu-display = { path = "../qemu-display" }
|
qemu-display = { path = "../qemu-display" }
|
||||||
keycodemap = { path = "../keycodemap" }
|
keycodemap = { path = "../keycodemap" }
|
||||||
rdw = { package = "rdw4", version = "0.1.0" }
|
rdw = { package = "rdw4", version = "0.1.0", features = ["bindings"] }
|
||||||
futures-util = "0.3.13"
|
futures-util = "0.3.13"
|
||||||
futures = "0.3.13"
|
futures = "0.3.13"
|
||||||
async-trait = "0.1.48"
|
async-trait = "0.1.48"
|
||||||
|
@ -13,7 +13,7 @@ mod imp {
|
|||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct RdwDisplayQemuClass {
|
pub struct RdwDisplayQemuClass {
|
||||||
pub parent_class: rdw::imp::RdwDisplayClass,
|
pub parent_class: rdw::RdwDisplayClass,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl ClassStruct for RdwDisplayQemuClass {
|
unsafe impl ClassStruct for RdwDisplayQemuClass {
|
||||||
@ -22,7 +22,7 @@ mod imp {
|
|||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct RdwDisplayQemu {
|
pub struct RdwDisplayQemu {
|
||||||
parent: rdw::imp::RdwDisplay,
|
parent: rdw::RdwDisplay,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::fmt::Debug for RdwDisplayQemu {
|
impl std::fmt::Debug for RdwDisplayQemu {
|
||||||
@ -160,7 +160,7 @@ mod imp {
|
|||||||
}
|
}
|
||||||
ScanoutDMABUF(s) => {
|
ScanoutDMABUF(s) => {
|
||||||
widget.set_display_size(Some((s.width as _, s.height as _)));
|
widget.set_display_size(Some((s.width as _, s.height as _)));
|
||||||
widget.set_dmabuf_scanout(rdw::DmabufScanout {
|
widget.set_dmabuf_scanout(rdw::RdwDmabufScanout {
|
||||||
width: s.width,
|
width: s.width,
|
||||||
height: s.height,
|
height: s.height,
|
||||||
stride: s.stride,
|
stride: s.stride,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user