diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-25 14:01:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-25 14:01:30 +0000 |
commit | 33d774591c8f145c38c9381ef6a811dbd69971bb (patch) | |
tree | 8f64c612e3139f1bf16e5ca791b726d2a90c527a /lib/Xconfig/main.pm | |
parent | 0a4947ffc225fc5998e57d8a437f0ee9c7ce21ba (diff) | |
download | drakx-kbd-mouse-x11-33d774591c8f145c38c9381ef6a811dbd69971bb.tar drakx-kbd-mouse-x11-33d774591c8f145c38c9381ef6a811dbd69971bb.tar.gz drakx-kbd-mouse-x11-33d774591c8f145c38c9381ef6a811dbd69971bb.tar.bz2 drakx-kbd-mouse-x11-33d774591c8f145c38c9381ef6a811dbd69971bb.tar.xz drakx-kbd-mouse-x11-33d774591c8f145c38c9381ef6a811dbd69971bb.zip |
- add support for "Automatic" resolution (aka "let xorg do everything")
Diffstat (limited to 'lib/Xconfig/main.pm')
-rw-r--r-- | lib/Xconfig/main.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |