summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/Xconfig.pm')
-rw-r--r--perl-install/Xconfig.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm
index d5f65f42b..af5c10f39 100644
--- a/perl-install/Xconfig.pm
+++ b/perl-install/Xconfig.pm
@@ -90,6 +90,11 @@ sub getinfoFromXF86Config {
}
}
}
+ #- get the default resolution.
+ my @depth = keys %{$o->{card}{depth}};
+ $o->{resolution_wanted} ||=
+ $o->{card}{depth}{$o->{card}{default_depth} || $depth[0]}[0][0] . "x" .
+ $o->{card}{depth}{$o->{card}{default_depth} || $depth[0]}[0][1];
$o;
}