summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-17 13:21:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-17 13:21:45 +0000
commit7d8595fb68d38dba36371249d240e10352fcb8d7 (patch)
tree73c4b54a0fb0322dab76d3340fecd37cee3320ab
parent95fe7131bf915b9e08fe8afbab7681a42d93cc45 (diff)
downloaddrakx-backup-do-not-use-7d8595fb68d38dba36371249d240e10352fcb8d7.tar
drakx-backup-do-not-use-7d8595fb68d38dba36371249d240e10352fcb8d7.tar.gz
drakx-backup-do-not-use-7d8595fb68d38dba36371249d240e10352fcb8d7.tar.bz2
drakx-backup-do-not-use-7d8595fb68d38dba36371249d240e10352fcb8d7.tar.xz
drakx-backup-do-not-use-7d8595fb68d38dba36371249d240e10352fcb8d7.zip
if the monitor size is not given, default to 14'
-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 110448e98..ce6239166 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} || size2default_resolution($monitor->{size});
+ my $res = $resolution_wanted->{X} || 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;