From 33d774591c8f145c38c9381ef6a811dbd69971bb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 25 Sep 2007 14:01:30 +0000 Subject: - add support for "Automatic" resolution (aka "let xorg do everything") --- lib/Xconfig/main.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Xconfig/main.pm') diff --git a/lib/Xconfig/main.pm b/lib/Xconfig/main.pm index cc31fc6..812706f 100644 --- a/lib/Xconfig/main.pm +++ b/lib/Xconfig/main.pm @@ -224,7 +224,7 @@ sub export_to_install_X { my ($X) = @_; my $resolution = $X->{resolutions}[0]; - $::o->{X}{resolution_wanted} = $resolution->{X} . 'x' . $resolution->{Y} if $resolution->{X}; + $::o->{X}{resolution_wanted} = $resolution->{automatic} ? 'automatic' : $resolution->{X} . 'x' . $resolution->{Y}; $::o->{X}{default_depth} = $resolution->{Depth} if $resolution->{Depth}; $::o->{X}{bios_vga_mode} = $resolution->{bios} if $resolution->{bios}; $::o->{X}{monitors} = $X->{monitors} if $X->{monitors}[0]{manually_chosen} && $X->{monitors}[0]{vendor} ne "Plug'n Play"; -- cgit v1.2.1