diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-25 13:58:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-25 13:58:10 +0000 |
commit | 0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba (patch) | |
tree | 668d585136fc42841330e86ae363d2afeaa6eb17 /lib/Xconfig | |
parent | 135f853a2609856021c1f81d9e95bcc63f4e73b5 (diff) | |
download | drakx-kbd-mouse-x11-0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba.tar drakx-kbd-mouse-x11-0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba.tar.gz drakx-kbd-mouse-x11-0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba.tar.bz2 drakx-kbd-mouse-x11-0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba.tar.xz drakx-kbd-mouse-x11-0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba.zip |
cleanup (and prepare for next commits)
Diffstat (limited to 'lib/Xconfig')
-rw-r--r-- | lib/Xconfig/various.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |