diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-08-21 15:21:56 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-08-21 15:21:56 +0000 |
commit | d261c4ef157a49b4866ff939d860c13fc3a0da15 (patch) | |
tree | c89945868e0c5834fa0cc07ab075b3dc925ee6a9 /perl-install/Xconfig | |
parent | 548c46e38fe669786a35fa877797b1b2e1314798 (diff) | |
download | drakx-backup-do-not-use-d261c4ef157a49b4866ff939d860c13fc3a0da15.tar drakx-backup-do-not-use-d261c4ef157a49b4866ff939d860c13fc3a0da15.tar.gz drakx-backup-do-not-use-d261c4ef157a49b4866ff939d860c13fc3a0da15.tar.bz2 drakx-backup-do-not-use-d261c4ef157a49b4866ff939d860c13fc3a0da15.tar.xz drakx-backup-do-not-use-d261c4ef157a49b4866ff939d860c13fc3a0da15.zip |
don't propose XF3 when $force_xf4
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r-- | perl-install/Xconfig/card.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index 57ec26b06..644ecd67f 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -418,8 +418,10 @@ sub xfree3_version() { '3.3.6' } sub xfree_and_glx_choices { my ($card) = @_; - my $xf3 = if_($card->{server}, { text => N("XFree %s", xfree3_version()), code => sub { $card->{prefer_xf3} = 1 } }); - my $xf4 = if_($card->{Driver}, { text => N("XFree %s", xfree4_version()), code => sub { $card->{prefer_xf3} = 0 } }); + my $xf3 = if_($card->{server} && !$force_xf4, + { text => N("XFree %s", xfree3_version()), code => sub { $card->{prefer_xf3} = 1 } }); + my $xf4 = if_($card->{Driver}, + { text => N("XFree %s", xfree4_version()), code => sub { $card->{prefer_xf3} = 0 } }); #- no XFree3 with multi-head my @choices = grep { $_ } ($card->{cards} ? $xf4 : $card->{prefer_xf3} ? ($xf3, $xf4) : ($xf4, $xf3)); @@ -429,7 +431,7 @@ sub xfree_and_glx_choices { #- try to figure if 3D acceleration is supported #- by XFree 3.3 but not XFree 4 then ask user to keep XFree 3.3 ? - if ($card->{UTAH_GLX}) { + if ($card->{UTAH_GLX} && !$force_xf4) { my $e = { text => N("XFree %s with 3D hardware acceleration", xfree3_version()), code => sub { $card->{prefer_xf3} = 1; $card->{use_UTAH_GLX} = 1 }, more_messages => ($card->{Driver} && !$card->{DRI_GLX} ? @@ -442,7 +444,7 @@ N("Your card can have 3D hardware acceleration support with XFree %s.", xfree3_v #- an expert user may want to try to use an EXPERIMENTAL 3D acceleration, currenlty #- this is with Utah GLX and so, it can provide a way of testing. - if ($card->{UTAH_GLX_EXPERIMENTAL} && $::expert) { + if ($card->{UTAH_GLX_EXPERIMENTAL} && $::expert && !$force_xf4) { push @choices, { text => N("XFree %s with EXPERIMENTAL 3D hardware acceleration", xfree3_version()), code => sub { $card->{prefer_xf3} = 1; $card->{use_UTAH_GLX} = 1 }, more_messages => (using_xf4($card) && !$card->{DRI_GLX} ? |