diff options
author | Francois Pons <fpons@mandriva.com> | 1999-11-18 17:21:44 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 1999-11-18 17:21:44 +0000 |
commit | 7c32cf9c3f2c6ad9884716f67aee1a2979812de9 (patch) | |
tree | 007b0a387ef2194ef61692bba27459b4d77fd53d /perl-install/Xconfigurator.pm | |
parent | ff92a24605af270187adee63ba306b5ecd1d6ff9 (diff) | |
download | drakx-backup-do-not-use-7c32cf9c3f2c6ad9884716f67aee1a2979812de9.tar drakx-backup-do-not-use-7c32cf9c3f2c6ad9884716f67aee1a2979812de9.tar.gz drakx-backup-do-not-use-7c32cf9c3f2c6ad9884716f67aee1a2979812de9.tar.bz2 drakx-backup-do-not-use-7c32cf9c3f2c6ad9884716f67aee1a2979812de9.tar.xz drakx-backup-do-not-use-7c32cf9c3f2c6ad9884716f67aee1a2979812de9.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r-- | perl-install/Xconfigurator.pm | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 3f8b7027c..cdedd020e 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -120,13 +120,14 @@ sub rewriteInittab { sub keepOnlyLegalModes { my ($card, $monitor) = @_; - my $mem = 1024 * ($card->{memory} || 99999); + my $mem = 1024 * ($card->{memory} || ($card->{server} eq 'FBDev' ? 2048 : 99999)); my $hsync = max(split(/[,-]/, $monitor->{hsyncrange})); while (my ($depth, $res) = each %{$card->{depth}}) { @$res = grep { $mem >= product(@$_, $depth / 8) && - $hsync >= ($min_hsync4wres{$_->[0]} || 0) + $hsync >= ($min_hsync4wres{$_->[0]} || 0) && + ($card->{server} ne 'FBDev' || $vgamodes{"$_->[0]x$_->[1]x$depth"}) } @$res; delete $card->{depth}{$depth} if @$res == 0; } @@ -387,17 +388,17 @@ sub autoDefaultDepth($$) { my ($card, $wres_wanted) = @_; my ($best, $depth); -# if ($card->{server} eq 'FBDev') { -# 16; #- assume 16 bits depth for this case. -# } else { - while (my ($d, $r) = each %{$card->{depth}}) { - $depth = $depth ? max($depth, $d) : $d; + if ($card->{server} eq 'FBDev') { + return 16; #- this should work by default, FBDev is allowed only if install currently uses it at 16bpp. + } - # try to have $resolution_wanted - $best = $best ? max($best, $d) : $d if $r->[0][0] >= $wres_wanted; - } - $best || $depth or die "no valid modes"; -# } + while (my ($d, $r) = each %{$card->{depth}}) { + $depth = $depth ? max($depth, $d) : $d; + + #- try to have $resolution_wanted + $best = $best ? max($best, $d) : $d if $r->[0][0] >= $wres_wanted; + } + $best || $depth or die "no valid modes"; } sub autoDefaultResolution(;$) { |