summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-17 13:35:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-17 13:35:26 +0000
commit8d435fcbf880298199a22513e8c1ff7b6541f446 (patch)
tree6f86204e7894e643067240a573905df75c15b10a /perl-install/Xconfig
parent7d8595fb68d38dba36371249d240e10352fcb8d7 (diff)
downloaddrakx-backup-do-not-use-8d435fcbf880298199a22513e8c1ff7b6541f446.tar
drakx-backup-do-not-use-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.gz
drakx-backup-do-not-use-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.bz2
drakx-backup-do-not-use-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.xz
drakx-backup-do-not-use-8d435fcbf880298199a22513e8c1ff7b6541f446.zip
sort resolutions to default to 1280x1024 instead of 1280x960
Diffstat (limited to 'perl-install/Xconfig')
-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 ce6239166..50c8816bc 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -161,7 +161,7 @@ sub choices {
#- finding it in @resolutions (well @matching)
#- (that way, we check it exists, and we get field "bios" for fbdev)
- my @default_resolutions = grep { $_->{Depth} eq $Depth } @matching;
+ my @default_resolutions = sort { $b->{Y} <=> $a->{Y} } grep { $_->{Depth} eq $Depth } @matching;
my $default_resolution = first(grep { $resolution_wanted->{Y} eq $_->{Y} } @default_resolutions) || $default_resolutions[0];
$default_resolution, @resolutions;