summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/monitor.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-30 13:04:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-30 13:04:59 +0000
commit3763b4031ed266dc2f236ee39e5011a79a1d7394 (patch)
tree6f627cc8693f9d30c90254508356cda908138c41 /lib/Xconfig/monitor.pm
parent6674b737ce907fd53d76bfc4f2c0f99e4cd20a13 (diff)
downloaddrakx-kbd-mouse-x11-3763b4031ed266dc2f236ee39e5011a79a1d7394.tar
drakx-kbd-mouse-x11-3763b4031ed266dc2f236ee39e5011a79a1d7394.tar.gz
drakx-kbd-mouse-x11-3763b4031ed266dc2f236ee39e5011a79a1d7394.tar.bz2
drakx-kbd-mouse-x11-3763b4031ed266dc2f236ee39e5011a79a1d7394.tar.xz
drakx-kbd-mouse-x11-3763b4031ed266dc2f236ee39e5011a79a1d7394.zip
- don't use 1280x1024 prefered resolution
(using prefered resolution only when adding explicit gtf modelines)
Diffstat (limited to 'lib/Xconfig/monitor.pm')
-rw-r--r--lib/Xconfig/monitor.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm
index d376f15..365e2da 100644
--- a/lib/Xconfig/monitor.pm
+++ b/lib/Xconfig/monitor.pm
@@ -215,9 +215,7 @@ sub probe_DDC() {
$monitor->{ModeLine} = Xconfig::xfree::default_ModeLine();
my $detailed_timings = $monitor->{detailed_timings} || [];
foreach (grep { !$_->{bad_ratio} } @$detailed_timings) {
- my $ratio = $_->{horizontal_active} / $_->{vertical_active};
-
- if (abs($ratio - 4 / 3) < 0.01) {
+ if (Xconfig::xfree::xorg_builtin_resolution($_->{horizontal_active}, $_->{vertical_active})) {
#- we don't want the 4/3 modelines otherwise they conflict with the Xorg builtin vesamodes
} else {
unshift @{$monitor->{ModeLine}},