mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-19 01:14:43 -05:00
chore: add other display types
This commit is contained in:
@@ -72,6 +72,8 @@ fn get_display_entry(path: &Path) -> anyhow::Result<(String, DisplayInfo)> {
|
||||
{
|
||||
"DP" | "eDP" => DisplayConnector::DisplayPort { lanes: 0, rate: 0 },
|
||||
"HDMI" => DisplayConnector::Hdmi,
|
||||
"DVI" => DisplayConnector::Dvi,
|
||||
"VGA" => DisplayConnector::Vga,
|
||||
_ => DisplayConnector::Other,
|
||||
};
|
||||
|
||||
|
||||
@@ -885,5 +885,7 @@ pub struct DisplayInfo {
|
||||
pub enum DisplayConnector {
|
||||
DisplayPort { lanes: u16, rate: u32 },
|
||||
Hdmi,
|
||||
Dvi,
|
||||
Vga,
|
||||
Other,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user