summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-17 13:21:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-17 13:21:02 +0000
commit725eb30eece4ac2505be940bc20962926ec04042 (patch)
tree9247f7e6a14bb9a2067706ad88e9a92400a98eef /perl-install/Xconfig
parent0df306ec9676615640ac4d67e9496978dd2bdee4 (diff)
downloaddrakx-725eb30eece4ac2505be940bc20962926ec04042.tar
drakx-725eb30eece4ac2505be940bc20962926ec04042.tar.gz
drakx-725eb30eece4ac2505be940bc20962926ec04042.tar.bz2
drakx-725eb30eece4ac2505be940bc20962926ec04042.tar.xz
drakx-725eb30eece4ac2505be940bc20962926ec04042.zip
(to_string): simpler way to handle the "default" resolution of frame-buffer
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 b84b5731e..4bbb2fad1 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -71,7 +71,7 @@ sub to_string {
my ($resolution) = @_;
$resolution or return;
- sprintf("%sx%s %dbpp", @$resolution{'X', 'Y', 'Depth'});
+ $resolution->{X} ? sprintf("%sx%s %dbpp", @$resolution{'X', 'Y', 'Depth'}) : 'frame-buffer';
}
sub allowed {