summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-08-01 15:56:09 +0000
committerFrancois Pons <fpons@mandriva.com>2000-08-01 15:56:09 +0000
commit75e392183f7adc3da92d1a80f93cb03c1bf78995 (patch)
treedd97516bb97db09b6d8bc6303ea2f5dae5910457 /perl-install/Xconfigurator.pm
parent210f258baeeb2e685b9495e8a9940b3f6b699002 (diff)
downloaddrakx-75e392183f7adc3da92d1a80f93cb03c1bf78995.tar
drakx-75e392183f7adc3da92d1a80f93cb03c1bf78995.tar.gz
drakx-75e392183f7adc3da92d1a80f93cb03c1bf78995.tar.bz2
drakx-75e392183f7adc3da92d1a80f93cb03c1bf78995.tar.xz
drakx-75e392183f7adc3da92d1a80f93cb03c1bf78995.zip
*** empty log message ***
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r--perl-install/Xconfigurator.pm18
1 files changed, 16 insertions, 2 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index ddfbfab2e..d791b6060 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -193,9 +193,17 @@ sub cardConfiguration(;$$$) {
$card->{type} =~ /Intel 810/ ||
$card->{type} =~ /ATI Rage 128/);
+ #- check to use XFree 4.0 or XFree 3.3.
+ !$::force_xf3 && $card->{driver} && !$card->{flags}{unsupported} or $card->{driver} = ''; #- disable XFree 4.0
+
+ #- ask the expert user if he want 3D acceleration.
+ if ($::expert && ($card->{Utah_glx} || $card->{DRI_glx})) {
+ $in->ask_yesorno('', _("Do you want support for hardware 3D acceleration?", 1)) or
+ $card->{Utah_glx} = $card->{DRI_glx} = ''; #- disable all 3D acceleration
+ }
+
#- try to figure if 3D acceleration is supported
#- by XFree 3.3 but not XFree 4.0 then ask user to keep XFree 3.3 ?
- !$::force_xf3 && $card->{driver} && !$card->{flags}{unsupported} or $card->{driver} = ''; #- disable XFree 4.0
if ($card->{driver} && $card->{Utah_glx} && !$card->{DRI_glx}) {
$::beginner || $in->ask_yesorno('',
_("Your card can have 3D acceleration but only with XFree 3.3.
@@ -778,8 +786,12 @@ Section "Module"
# This loads the DBE extension module.
Load "dbe"
+);
+ print G qq(
Load "glx"
Load "dri"
+) if $o->{card}{DRI_glx};
+ print G qq(
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
@@ -793,11 +805,13 @@ Section "Module"
Load "type1"
Load "freetype"
EndSection
+);
+ print G qq(
Section "DRI"
Mode 0666
EndSection
-);
+) if $o->{card}{DRI_glx};
#- Write monitor section.
$O = $o->{monitor};