diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-17 13:21:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-17 13:21:02 +0000 |
commit | 725eb30eece4ac2505be940bc20962926ec04042 (patch) | |
tree | 9247f7e6a14bb9a2067706ad88e9a92400a98eef | |
parent | 0df306ec9676615640ac4d67e9496978dd2bdee4 (diff) | |
download | drakx-backup-do-not-use-725eb30eece4ac2505be940bc20962926ec04042.tar drakx-backup-do-not-use-725eb30eece4ac2505be940bc20962926ec04042.tar.gz drakx-backup-do-not-use-725eb30eece4ac2505be940bc20962926ec04042.tar.bz2 drakx-backup-do-not-use-725eb30eece4ac2505be940bc20962926ec04042.tar.xz drakx-backup-do-not-use-725eb30eece4ac2505be940bc20962926ec04042.zip |
(to_string): simpler way to handle the "default" resolution of frame-buffer
-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 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 { |