From 81f7c4415d4ba35d8294b9c8e913bfdb57a6952c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Mar 2005 10:48:28 +0000 Subject: we don't want the 4/3 detailed_timings otherwise they conflict with the Xorg builtin vesamodes --- perl-install/Xconfig/monitor.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'perl-install/Xconfig/monitor.pm') diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm index f085df86c..f94177c6f 100644 --- a/perl-install/Xconfig/monitor.pm +++ b/perl-install/Xconfig/monitor.pm @@ -180,8 +180,15 @@ sub getinfoFromDDC() { $monitor->{ModeLine} = Xconfig::xfree::default_ModeLine(); my $detailed_timings = $monitor->{detailed_timings} || []; foreach (grep { !$_->{bad_ratio} } @$detailed_timings) { - unshift @{$monitor->{ModeLine}}, - { val => $_->{ModeLine}, pre_comment => $_->{ModeLine_comment} . "\n" }; + my $res = join('x', $_->{horizontal_active}, $_->{horizontal_active}); + my $ratio = $_->{horizontal_active} / $_->{vertical_active}; + + if (abs($ratio - 4 / 3) < 0.01) { + #- we don't want the 4/3 modelines otherwise they conflict with the Xorg builtin vesamodes + } else { + unshift @{$monitor->{ModeLine}}, + { val => $_->{ModeLine}, pre_comment => $_->{ModeLine_comment} . "\n" }; + } if (@$detailed_timings == 1) { #- should we care about {has_preferred_timing} ? -- cgit v1.2.1