summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-31 20:06:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-31 20:06:45 +0000
commitbbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d (patch)
treedde4ae379ab612b3ccb6efd2735cfcbf2d24c374 /perl-install
parent270d7af054112aeabcedde0474ab863843520268 (diff)
downloaddrakx-bbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d.tar
drakx-bbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d.tar.gz
drakx-bbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d.tar.bz2
drakx-bbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d.tar.xz
drakx-bbbd8d1b5130e6cebf3e3635faf2dd7c274f5f7d.zip
(info): fix displaying depth
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfig/various.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/Xconfig/various.pm b/perl-install/Xconfig/various.pm
index 1c2d1ae73..dea93439b 100644
--- a/perl-install/Xconfig/various.pm
+++ b/perl-install/Xconfig/various.pm
@@ -4,6 +4,7 @@ use diagnostics;
use strict;
use Xconfig::card;
+use Xconfig::resolution_and_depth;
use common;
use any;
@@ -33,7 +34,7 @@ sub info {
$info .= _("Graphics card: %s\n", $device->{VendorName} . ' '. $device->{BoardName});
$info .= _("Graphics memory: %s kB\n", $device->{VideoRam}) if $device->{VideoRam};
if (my $resolution = eval { $raw_X->get_resolution }) {
- $info .= _("Color depth: %s\n", translate($Xconfig::xfreeX::depths{$resolution->{Depth}}));
+ $info .= _("Color depth: %s\n", translate($Xconfig::resolution_and_depth::depth2text{$resolution->{Depth}}));
$info .= _("Resolution: %s\n", join('x', @$resolution{'X', 'Y'}));
}
$info .= _("XFree86 server: %s\n", $card->{server}) if $card->{server};