From f2d6adb3a3dc00fab5b62534270f4df710cfb3b9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 16 Dec 2011 19:10:09 +0000 Subject: (allowed) simplify --- lib/Xconfig/resolution_and_depth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.1