summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-09-11 14:42:54 +0000
committerFrancois Pons <fpons@mandriva.com>2003-09-11 14:42:54 +0000
commit245e67dc73ec39f5981e0c8b2f6f5afeeab02293 (patch)
tree2e746006f38e5de6d80a549aa4e9703714bfe97d
parentc0b6bf736c71691312e9dd60cbbfd7b41e6e6e10 (diff)
downloaddrakx-245e67dc73ec39f5981e0c8b2f6f5afeeab02293.tar
drakx-245e67dc73ec39f5981e0c8b2f6f5afeeab02293.tar.gz
drakx-245e67dc73ec39f5981e0c8b2f6f5afeeab02293.tar.bz2
drakx-245e67dc73ec39f5981e0c8b2f6f5afeeab02293.tar.xz
drakx-245e67dc73ec39f5981e0c8b2f6f5afeeab02293.zip
fixed depth to 24 when using driver fglrx (it won't work unless 24 bits)
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 3a2f9631c..d055ee42e 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -83,6 +83,9 @@ sub allowed {
if ($using_xf4 ? $card->{Driver} eq 'fbdev' : $card->{server} eq 'FBDev') {
push @resolution_and_depth, grep { $_->{Depth} == 16 } @bios_vga_modes;
+ } elsif ($using_xf4 && $card->{Driver} eq 'fglrx') {
+ $prefered_depth = 24;
+ push @depths, 24;
} elsif ($using_xf4) {
if ($card->{use_DRI_GLX}) {
$prefered_depth = 16;