summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-16 19:10:09 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-16 19:10:09 +0000
commitf2d6adb3a3dc00fab5b62534270f4df710cfb3b9 (patch)
tree4588a6ab099e354ecf8c8b669d80ea40cf4c129f /lib/Xconfig
parentac4fac7dfbdeba46ce24b279205049774fd5c8fa (diff)
downloaddrakx-kbd-mouse-x11-f2d6adb3a3dc00fab5b62534270f4df710cfb3b9.tar
drakx-kbd-mouse-x11-f2d6adb3a3dc00fab5b62534270f4df710cfb3b9.tar.gz
drakx-kbd-mouse-x11-f2d6adb3a3dc00fab5b62534270f4df710cfb3b9.tar.bz2
drakx-kbd-mouse-x11-f2d6adb3a3dc00fab5b62534270f4df710cfb3b9.tar.xz
drakx-kbd-mouse-x11-f2d6adb3a3dc00fab5b62534270f4df710cfb3b9.zip
(allowed) simplify
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm
index 942e50d..f4c1ca8 100644
--- a/lib/Xconfig/resolution_and_depth.pm
+++ b/lib/Xconfig/resolution_and_depth.pm
@@ -85,7 +85,7 @@ sub allowed {
@resolution_and_depth = grep { $_->{Depth} == 16 } @bios_vga_modes;
} else {
my @depths;
- if ($card->{Driver} eq 'fglrx' || $card->{Driver} eq 'savage') {
+ if (member($card->{Driver}, qw(fglrx savage))) {
@depths = 24;
} elsif ($card->{BoardName} eq 'NVIDIA RIVA 128') {
@depths = qw(8 15 24);