summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/xfree.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-23 11:16:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-23 11:16:21 +0000
commite3445ee77906f98107f37ed8fdb3d20eeb07322a (patch)
treee0e90ab66faf74ac1cdf5b72e120e3eb4151a8bc /lib/Xconfig/xfree.pm
parentfb261c8e703aed6075ee156c400033b23c9a1237 (diff)
downloaddrakx-kbd-mouse-x11-e3445ee77906f98107f37ed8fdb3d20eeb07322a.tar
drakx-kbd-mouse-x11-e3445ee77906f98107f37ed8fdb3d20eeb07322a.tar.gz
drakx-kbd-mouse-x11-e3445ee77906f98107f37ed8fdb3d20eeb07322a.tar.bz2
drakx-kbd-mouse-x11-e3445ee77906f98107f37ed8fdb3d20eeb07322a.tar.xz
drakx-kbd-mouse-x11-e3445ee77906f98107f37ed8fdb3d20eeb07322a.zip
move resolution2ratio() to Xconfig::xfree (for next commit)
Diffstat (limited to 'lib/Xconfig/xfree.pm')
-rw-r--r--lib/Xconfig/xfree.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm
index 96a0b66..083ca12 100644
--- a/lib/Xconfig/xfree.pm
+++ b/lib/Xconfig/xfree.pm
@@ -401,6 +401,12 @@ sub xorg_builtin_resolution {
$res ne '1400x1050' && $res ne '1152x864' && $Xconfig::xfree::resolution2ratio{$res} eq '4/3';
}
+sub resolution2ratio {
+ my ($resolution, $b_non_strict) = @_;
+ my $res = $resolution->{X} . 'x' . $resolution->{Y};
+ $res eq '1280x1024' && $b_non_strict ? '4/3' : $Xconfig::xfree::resolution2ratio{$res};
+}
+
sub add_gtf_ModeLines {
my ($raw_X, $resolutions) = @_;