summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-06-22 14:31:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-06-22 14:31:38 +0000
commitdf1aabfd83efbccaa3373c8195a54c67dd9ea08c (patch)
tree6712be5a68779a5b174af073bb6486634bbbfca8 /perl-install/Xconfig
parentb90c152fd97b74858a8dc01e8f6839bd4cbdcac0 (diff)
downloaddrakx-backup-do-not-use-df1aabfd83efbccaa3373c8195a54c67dd9ea08c.tar
drakx-backup-do-not-use-df1aabfd83efbccaa3373c8195a54c67dd9ea08c.tar.gz
drakx-backup-do-not-use-df1aabfd83efbccaa3373c8195a54c67dd9ea08c.tar.bz2
drakx-backup-do-not-use-df1aabfd83efbccaa3373c8195a54c67dd9ea08c.tar.xz
drakx-backup-do-not-use-df1aabfd83efbccaa3373c8195a54c67dd9ea08c.zip
- export @bios_vga_modes (needed for bootloader vga=)
- to_string should return '' instead of ()
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 4dd830a22..3663f804c 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -51,6 +51,8 @@ sub from_bios {
find { $_->{bios} == $bios } @bios_vga_modes;
}
+sub bios_vga_modes { @bios_vga_modes }
+
sub size2default_resolution {
my ($size) = @_; #- size in inch
@@ -76,7 +78,7 @@ sub size2default_resolution {
sub to_string {
my ($resolution) = @_;
- $resolution or return;
+ $resolution or return '';
$resolution->{X} ? sprintf("%sx%s %dbpp", @$resolution{'X', 'Y', 'Depth'}) : 'frame-buffer';
}