summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-30 09:45:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-30 09:45:28 +0000
commit7c2fc628056e2b72685ce562602ae41cad2b8c2c (patch)
tree3e7f602d60db5690cae8219e4bccdcb347240741
parente129b3db8773e5e1b717cc4184e96db959a25a39 (diff)
downloaddrakx-7c2fc628056e2b72685ce562602ae41cad2b8c2c.tar
drakx-7c2fc628056e2b72685ce562602ae41cad2b8c2c.tar.gz
drakx-7c2fc628056e2b72685ce562602ae41cad2b8c2c.tar.bz2
drakx-7c2fc628056e2b72685ce562602ae41cad2b8c2c.tar.xz
drakx-7c2fc628056e2b72685ce562602ae41cad2b8c2c.zip
fix typo (choosing the Flat Panel resolution by default)
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 1127fa1f2..376e60aa1 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -146,7 +146,7 @@ sub choices {
@resolutions = filter_using_VideoRam($card->{VideoRam}, @resolutions) if $card->{VideoRam};
my $x_res = do {
- my $res = $resolution_wanted->{X} || ($monitor->{Model} =~ /^Flat Panel (\d+x\d+)$/ ? $1 : size2default_resolution($monitor->{size} || 14));
+ my $res = $resolution_wanted->{X} || ($monitor->{ModelName} =~ /^Flat Panel (\d+x\d+)$/ ? $1 : size2default_resolution($monitor->{size} || 14));
my $x_res = first(split 'x', $res);
#- take the first available resolution <= the wanted resolution
max map { if_($_->{X} <= $x_res, $_->{X}) } @resolutions;