From e3445ee77906f98107f37ed8fdb3d20eeb07322a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 23 Jan 2008 11:16:21 +0000 Subject: move resolution2ratio() to Xconfig::xfree (for next commit) --- lib/Xconfig/xfree.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Xconfig/xfree.pm') 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) = @_; -- cgit v1.2.1