aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rwxr-xr-xmonitor-edid2
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5259594..b8397f7 100644
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,10 @@
monitor reports as preferred, and add "Monitor supported modeline"
comment for the other modelines
+- monitor-edid, monitor-get-edid:
+ o do not get duplicate EDIDs if the same EDID is available via
+ multiple methods
+
Version 2.5 - 18 October 2009, by Anssi Hannula
- monitor-probe-using-X:
diff --git a/monitor-edid b/monitor-edid
index 3f4d7a2..d1e7d61 100755
--- a/monitor-edid
+++ b/monitor-edid
@@ -101,6 +101,8 @@ sub get_edids {
}
}
}
+ my %seen = ();
+ @l = grep { !$seen{ $_[1] }++ } @l;
@l;
}