1
0
Fork 0
forked from wry/wry

virtual-output: add support for virtual outputs

This commit is contained in:
Julian Orth 2026-03-17 18:42:49 +01:00
parent c25d17514d
commit 530e66ef78
27 changed files with 1480 additions and 9 deletions

View file

@ -1146,6 +1146,7 @@ pub enum ConnectorType {
SPI,
USB,
EmbeddedWindow,
VirtualOutput,
}
impl ConnectorType {
@ -1200,6 +1201,7 @@ impl ConnectorType {
Self::SPI => sys::DRM_MODE_CONNECTOR_SPI,
Self::USB => sys::DRM_MODE_CONNECTOR_USB,
Self::EmbeddedWindow => sys::DRM_MODE_CONNECTOR_Unknown,
Self::VirtualOutput => sys::DRM_MODE_CONNECTOR_Unknown,
}
}
@ -1228,6 +1230,7 @@ impl ConnectorType {
Self::SPI => CON_SPI,
Self::USB => CON_USB,
Self::EmbeddedWindow => CON_EMBEDDED_WINDOW,
Self::VirtualOutput => CON_VIRTUAL_OUTPUT,
}
}
}
@ -1257,6 +1260,7 @@ impl Display for ConnectorType {
Self::SPI => "SPI",
Self::USB => "USB",
Self::EmbeddedWindow => "EmbeddedWindow",
Self::VirtualOutput => "VO",
};
f.write_str(s)
}