summaryrefslogtreecommitdiffstats
diff options
context:
space:
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 {