summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/resolution_and_depth.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-11-14 07:44:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-11-14 07:44:11 +0000
commit5e7dea780680b433842dbd4ecd6f55e38b391f5e (patch)
tree17efe4ee1904744d4b8395c782de4d2043ef1e21 /lib/Xconfig/resolution_and_depth.pm
parentcfd406c8fe8419bbc0e703953fd9d8251c7df74d (diff)
downloaddrakx-kbd-mouse-x11-5e7dea780680b433842dbd4ecd6f55e38b391f5e.tar
drakx-kbd-mouse-x11-5e7dea780680b433842dbd4ecd6f55e38b391f5e.tar.gz
drakx-kbd-mouse-x11-5e7dea780680b433842dbd4ecd6f55e38b391f5e.tar.bz2
drakx-kbd-mouse-x11-5e7dea780680b433842dbd4ecd6f55e38b391f5e.tar.xz
drakx-kbd-mouse-x11-5e7dea780680b433842dbd4ecd6f55e38b391f5e.zip
- XFdrake:
o have Option "PanelGeometry" "XXxYY" on geode driver
Diffstat (limited to 'lib/Xconfig/resolution_and_depth.pm')
-rw-r--r--lib/Xconfig/resolution_and_depth.pm14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm
index dc3f446..f688fce 100644
--- a/lib/Xconfig/resolution_and_depth.pm
+++ b/lib/Xconfig/resolution_and_depth.pm
@@ -214,7 +214,7 @@ sub configure {
} else {
$resolution = choose($in, $default_resolution, @resolutions) or return;
}
- set_resolution_($raw_X, $monitors, $default_resolution, $resolution, @resolutions);
+ set_resolution_($raw_X, $card, $monitors, $default_resolution, $resolution, @resolutions);
}
sub configure_auto_install {
@@ -232,15 +232,15 @@ sub configure_auto_install {
($default_resolution, @resolutions) = choices($raw_X, $resolution_wanted, $card, $monitors);
$default_resolution or die "you selected an unusable depth";
}
- set_resolution($raw_X, $monitors, $default_resolution, @resolutions);
+ set_resolution($raw_X, $card, $monitors, $default_resolution, @resolutions);
}
sub set_resolution {
- my ($raw_X, $monitors, $resolution, @other) = @_;
- set_resolution_($raw_X, $monitors, $resolution, $resolution, @other);
+ my ($raw_X, $card, $monitors, $resolution, @other) = @_;
+ set_resolution_($raw_X, $card, $monitors, $resolution, $resolution, @other);
}
sub set_resolution_ {
- my ($raw_X, $monitors, $default_resolution, $resolution, @other) = @_;
+ my ($raw_X, $card, $monitors, $default_resolution, $resolution, @other) = @_;
my $PreferredMode;
if (!$resolution->{automatic}) {
@@ -264,6 +264,10 @@ sub set_resolution_ {
}
$raw_X->set_monitors(@$monitors);
}
+ if ($card->{Driver} eq 'geode') {
+ $card->{Options}{PanelGeometry} = XxY($resolution);
+ Xconfig::card::to_raw_X($card, $raw_X);
+ }
set_default_background($resolution);
my $resolutions = [ $resolution, @other ];