summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/resolution_and_depth.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-28 15:46:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-28 15:46:41 +0000
commitef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f (patch)
tree62c387e82205a5c856ba35e3055a53914dd3637f /perl-install/Xconfig/resolution_and_depth.pm
parenta031a3eacefdd49ea192b732bc038c6521ab10aa (diff)
downloaddrakx-ef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f.tar
drakx-ef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f.tar.gz
drakx-ef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f.tar.bz2
drakx-ef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f.tar.xz
drakx-ef6171da703df0a6b6ebe80e0c6c6da5a6c1e72f.zip
on a "Flat Panel" use the flat planel resolution (as suggested by Alastair Scott)
Diffstat (limited to 'perl-install/Xconfig/resolution_and_depth.pm')
-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 5db5194b8..1127fa1f2 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} || 14);
+ my $res = $resolution_wanted->{X} || ($monitor->{Model} =~ /^Flat Panel (\d+x\d+)$/ ? $1 : 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;