diff options
author | Francois Pons <fpons@mandriva.com> | 2003-09-15 17:13:52 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-09-15 17:13:52 +0000 |
commit | ed5b6a9ddb829e52d027c5257b7e26e47ea82d54 (patch) | |
tree | b7db82c17dec95a0f12b84fb8437945f2aeec0a2 /perl-install/Xconfig | |
parent | c4856adc6cd6dd79ed8dbec5c5c4e5dcf1fd2e05 (diff) | |
download | drakx-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar drakx-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.gz drakx-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.bz2 drakx-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.xz drakx-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.zip |
avoid using other depth than 24 for fglrx in automatic mode.
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r-- | perl-install/Xconfig/resolution_and_depth.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |