aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-11-14 02:12:52 +0100
committerdec05eba <dec05eba@protonmail.com>2025-11-14 02:12:52 +0100
commit20e101bfe93b1a55905d47a284d8245da1ba7441 (patch)
tree6e9ba592581448a826343813b32a595c48d3a0d9 /src/utils.c
parente99605fec279410fdafbeafddb9ae0fe90845d00 (diff)
Identify DVI monitor
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 831d5d8..3814894 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -148,6 +148,8 @@ int get_connector_type_by_name(const char *name) {
return 3;
else if(len >= 4 && strncmp(name, "eDP-", 4) == 0)
return 4;
+ else if(len >= 4 && strncmp(name, "DVI-", 4) == 0)
+ return 5;
else
return -1;
}