From ed5b6a9ddb829e52d027c5257b7e26e47ea82d54 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 15 Sep 2003 17:13:52 +0000 Subject: avoid using other depth than 24 for fglrx in automatic mode. --- perl-install/Xconfig/resolution_and_depth.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/Xconfig') diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm index d055ee42e..5efac6ae5 100644 --- a/perl-install/Xconfig/resolution_and_depth.pm +++ b/perl-install/Xconfig/resolution_and_depth.pm @@ -181,6 +181,11 @@ sub configure { if ($b_auto) { #- use $default_resolution + if (Xconfig::card::using_xf4($card) && $card->{Driver} eq 'fglrx') { + $default_resolution = first(find { $default_resolution->{Y} eq $_->{Y} && $_->{Depth} == 24 } + $default_resolution, @resolutions); + $default_resolution ||= first(find { $_->{Depth} == 24 } $default_resolution, @resolutions); + } } elsif ($in->isa('interactive::gtk')) { $default_resolution = choose_gtk($in, $card, $default_resolution, @resolutions) or return; } else { -- cgit v1.2.1