summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-12 09:41:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-12 09:41:04 +0000
commita6f5badbd4ab6f34b5340a45c7a6557395eddc89 (patch)
treeedf13bbc9ec270f890a31109da9a5f2bf949bdfe /perl-install/Xconfig.pm
parent55597dec8c0060b2dab62c51783b18319bb1eb10 (diff)
downloaddrakx-backup-do-not-use-a6f5badbd4ab6f34b5340a45c7a6557395eddc89.tar
drakx-backup-do-not-use-a6f5badbd4ab6f34b5340a45c7a6557395eddc89.tar.gz
drakx-backup-do-not-use-a6f5badbd4ab6f34b5340a45c7a6557395eddc89.tar.bz2
drakx-backup-do-not-use-a6f5badbd4ab6f34b5340a45c7a6557395eddc89.tar.xz
drakx-backup-do-not-use-a6f5badbd4ab6f34b5340a45c7a6557395eddc89.zip
no_comment
Diffstat (limited to 'perl-install/Xconfig.pm')
-rw-r--r--perl-install/Xconfig.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm
index fb1b03cc4..6bad6d93e 100644
--- a/perl-install/Xconfig.pm
+++ b/perl-install/Xconfig.pm
@@ -93,10 +93,11 @@ sub getinfoFromXF86Config {
}
}
#- get the default resolution according the the current file.
- my @depth = keys %{$o->{card}{depth}};
- $o->{resolution_wanted} ||=
- ($o->{card}{depth}{$o->{default_depth} || $depth[0]}[0][0]) . "x" .
- ($o->{card}{depth}{$o->{default_depth} || $depth[0]}[0][1]);
+ if (my @depth = keys %{$o->{card}{depth}}) {
+ $o->{resolution_wanted} ||=
+ ($o->{card}{depth}{$o->{default_depth} || $depth[0]}[0][0]) . "x" .
+ ($o->{card}{depth}{$o->{default_depth} || $depth[0]}[0][1]);
+ }
$o;
}