aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-03 09:11:51 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-03 09:11:51 +0000
commit76fca20cd2f018d12509de2117b0edc43d495727 (patch)
tree47c021bc8d15a6e156fb23f832f097dcbb08365a
parent854c3e5023035951184375b7bb83525878b9a7fb (diff)
downloadmonitor-edid-76fca20cd2f018d12509de2117b0edc43d495727.tar
monitor-edid-76fca20cd2f018d12509de2117b0edc43d495727.tar.gz
monitor-edid-76fca20cd2f018d12509de2117b0edc43d495727.tar.bz2
monitor-edid-76fca20cd2f018d12509de2117b0edc43d495727.tar.xz
monitor-edid-76fca20cd2f018d12509de2117b0edc43d495727.zip
monitor-edid, monitor-get-edid:
do not get duplicate EDIDs if the same EDID is available via multiple methods
-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;
}