From 0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 25 Sep 2007 13:58:10 +0000 Subject: cleanup (and prepare for next commits) --- lib/Xconfig/various.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Xconfig/various.pm') diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm index 2cd3cac..c4bf9fe 100644 --- a/lib/Xconfig/various.pm +++ b/lib/Xconfig/various.pm @@ -34,8 +34,8 @@ sub info { $info .= N("Graphics card: %s\n", $device->{VendorName} . ' ' . $device->{BoardName}); $info .= N("Graphics memory: %s kB\n", $device->{VideoRam}) if $device->{VideoRam}; if (my $resolution = eval { $raw_X->get_resolution }) { - $info .= N("Color depth: %s\n", translate($Xconfig::resolution_and_depth::depth2text{$resolution->{Depth}})); - $info .= N("Resolution: %s\n", join('x', @$resolution{'X', 'Y'})); + $info .= N("Color depth: %s\n", translate($Xconfig::resolution_and_depth::depth2text{$resolution->{Depth}})) if $resolution->{Depth}; + $info .= N("Resolution: %s\n", Xconfig::resolution_and_depth::to_string($resolution)); } $info .= N("Xorg driver: %s\n", $device->{Driver}) if $device->{Driver}; $info; -- cgit v1.2.1