diff options
author | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 09:11:51 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2010-01-03 09:11:51 +0000 |
commit | 76fca20cd2f018d12509de2117b0edc43d495727 (patch) | |
tree | 47c021bc8d15a6e156fb23f832f097dcbb08365a | |
parent | 854c3e5023035951184375b7bb83525878b9a7fb (diff) | |
download | monitor-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-- | NEWS | 4 | ||||
-rwxr-xr-x | monitor-edid | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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; } |