diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-17 13:35:26 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-17 13:35:26 +0000 |
commit | 8d435fcbf880298199a22513e8c1ff7b6541f446 (patch) | |
tree | 6f86204e7894e643067240a573905df75c15b10a /perl-install/Xconfig/resolution_and_depth.pm | |
parent | 7d8595fb68d38dba36371249d240e10352fcb8d7 (diff) | |
download | drakx-8d435fcbf880298199a22513e8c1ff7b6541f446.tar drakx-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.gz drakx-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.bz2 drakx-8d435fcbf880298199a22513e8c1ff7b6541f446.tar.xz drakx-8d435fcbf880298199a22513e8c1ff7b6541f446.zip |
sort resolutions to default to 1280x1024 instead of 1280x960
Diffstat (limited to 'perl-install/Xconfig/resolution_and_depth.pm')
-rw-r--r-- | perl-install/Xconfig/resolution_and_depth.pm | 2 |
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; |