From b9b87a52e494574c229ab6346f103768a70680e1 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 9 Apr 2001 16:29:37 +0000 Subject: fixed always 8bpp for autoDefaultDepth. --- perl-install/Xconfigurator.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 3eb484031..cc8e02817 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -633,7 +633,8 @@ sub autoDefaultDepth($$) { #- try to have resolution_wanted $best = max($best || 0, $d) if $r->[0][0] >= $wres_wanted; - $best = $card->{suggest_depth}, last if $r->[0][0] >= $wres_wanted || $r->[0][0] >= $card->{suggest_wres}; + $best = $card->{suggest_depth}, last if ($card->{suggest_depth} && + $card->{suggest_wres} && $r->[0][0] >= $card->{suggest_wres}); } $best || $depth or die "no valid modes"; } -- cgit v1.2.1