From 4e40de3afa90688347153a85a194265a171bb621 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 21 Jul 2002 22:33:45 +0000 Subject: fix multi-head auto-choosing in auto install --- perl-install/Xconfigurator.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/Xconfigurator.pm') diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 198d390c3..df67350e9 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -392,7 +392,8 @@ sub card_config { if (!$card->{server} && !$card->{driver} && !$noauto) { my @cards = probe_cards(); - my $card_ = multi_head_choose($in, $noauto, @cards) or return; + my $card_ = $in->isa('class_discard') ? $cards[0] : + multi_head_choose($in, $noauto, @cards) or return; put_in_hash($card, $card_); $card->{server} = 'FBDev' if $cardOptions->{allowFB} && !$card->{server} && !$card->{driver}; @@ -915,7 +916,7 @@ sub resolutionsConfiguration { #- there could be a problem. #- memory in KB is approximated by $x_res*$dpeth/14 which is little less #- than memory really used, (correct factor is 13.65333 for w/h ratio of 1.33333). - if (!$x_res || $auto && ref($in) !~ /class_discard/ && ($x_res < 1024 && ($card->{VideoRam} / ($x_res * $depth / 14)) > 2)) { + if (!$x_res || $auto && !$in->isa('class_discard') && ($x_res < 1024 && ($card->{VideoRam} / ($x_res * $depth / 14)) > 2)) { delete $card->{depth}; return resolutionsConfiguration($in, $X); } -- cgit v1.2.1