summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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);