From 725eb30eece4ac2505be940bc20962926ec04042 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 17 Feb 2003 13:21:02 +0000 Subject: (to_string): simpler way to handle the "default" resolution of frame-buffer --- perl-install/Xconfig/resolution_and_depth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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 { -- cgit v1.2.1