summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-09-15 17:13:52 +0000
committerFrancois Pons <fpons@mandriva.com>2003-09-15 17:13:52 +0000
commited5b6a9ddb829e52d027c5257b7e26e47ea82d54 (patch)
treeb7db82c17dec95a0f12b84fb8437945f2aeec0a2
parentc4856adc6cd6dd79ed8dbec5c5c4e5dcf1fd2e05 (diff)
downloaddrakx-backup-do-not-use-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar
drakx-backup-do-not-use-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.gz
drakx-backup-do-not-use-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.bz2
drakx-backup-do-not-use-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.tar.xz
drakx-backup-do-not-use-ed5b6a9ddb829e52d027c5257b7e26e47ea82d54.zip
avoid using other depth than 24 for fglrx in automatic mode.
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm5
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 {