xserver/hw/xfree86/common
Olivier Fourdan 9770500983 modes: improve aspect ratio match for classic drivers
After we infer the aspect ratio for the screen, we pick the largest
mode matching that aspect ratio from the best mode pool available.
We then clamp virtual size to that mode, and run the resulting mode
list through the driver's ValidMode hook.  In doing so we might filter
away our initial guess.  If this happens we shrink the default mode
to the next largest mode from _any_ mode pool.  This is usually wrong,
and we should instead pick the next aspect-matched mode from the best
available mode pool (as always, user then driver then default).

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 7bb653bedc)
2010-11-23 13:06:36 -05:00
..
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
compiler.h xfree86: nds32: add nds32 support for compiler related mmio codes 2010-09-29 14:08:08 -04:00
extramodes Remove some default modes that really shouldn't be in the default set. 2008-06-24 10:40:36 -04:00
fourcc.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am Only link Xorg with libconfig.la 2010-05-17 09:41:16 -07:00
modeline2c.awk Remove some OS/2 leftovers. 2009-04-06 10:58:47 -04:00
scoasm.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
vesamodes Fix standard VESA modes. 2006-11-03 14:06:32 -08:00
vidmodeproc.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86AutoConfig.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xf86Build.h.in Print the build time as well as the date if we can. 2007-06-04 02:03:44 -04:00
xf86Bus.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xf86Bus.h xfree86: bus: remove useless field from EntityRec 2010-05-24 19:17:04 +03:00
xf86cmap.c Unwrap/rewrap EnterVT/LeaveVT completely, Fixes 28998 2010-07-13 09:58:04 -07:00
xf86cmap.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86Config.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xf86Config.h xfree86: "Staticize" functions in xf86AutoConfig.c 2009-07-24 13:25:42 +03:00
xf86Configure.c xfree86: configure: remove vendor and card name matching rules 2010-07-01 08:04:15 -04:00
xf86Cursor.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
xf86DGA.c xfree86: set mask for valuators 0/1 when emulating core events (#30267) 2010-11-10 11:14:46 +10:00
xf86DPMS.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86Events.c dix: purge leftover manual key down bit setting. 2010-07-07 13:29:46 +10:00
xf86fbBus.c xserver: remove RAC/resource handling code. 2009-07-28 15:14:28 +10:00
xf86fbman.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86fbman.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86Globals.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86Helper.c xfree86: Add 18bpp support 2010-09-29 14:08:39 -04:00
xf86Init.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xf86InPriv.h xfree86: don't FatalError on "too many input devices". 2008-12-02 15:50:38 +10:00
xf86Mode.c modes: improve aspect ratio match for classic drivers 2010-11-23 13:06:36 -05:00
xf86Module.h xfree86: bump ABI_XINPUT_VERSION to 11. 2010-05-26 19:34:22 -07:00
xf86noBus.c xserver: remove RAC/resource handling code. 2009-07-28 15:14:28 +10:00
xf86Opt.h xfree86: Add option parsing for percent options. 2010-05-18 15:43:51 -07:00
xf86Option.c xfree86: Get rid of xstrdup when argument is definitely non-NULL 2010-06-11 19:05:46 +07:00
xf86pciBus.c xfree86: pci: remove superfluous vendor and card name logging 2010-07-01 08:03:26 -04:00
xf86pciBus.h xfree86: Unbreak autoconfig following 0abf065e38 2010-06-02 21:09:44 -07:00
xf86PciInfo.h No more "-scanpci" given that we already have it in libpciaccess. 2008-02-25 17:08:07 -03:00
xf86PM.c xf86 ddx: add vga arbiter support. 2009-08-28 11:39:42 +10:00
xf86Priv.h xfree86: bus: delete useless xf86FindPrimaryDevice 2010-05-24 19:16:02 +03:00
xf86Privstr.h Remove ResNoAvoid definition, missed in the RAC removal 2010-05-13 04:20:34 -07:00
xf86RandR.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86sbusBus.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xf86sbusBus.h Correct wrong symbol reference on sparc. 2008-12-08 22:11:50 -02:00
xf86ShowOpts.c xfree86: Add option parsing for percent options. 2010-05-18 15:43:51 -07:00
xf86str.h xfree86: store the InputAttributes in the input device. 2010-05-25 10:06:50 -07:00
xf86VGAarbiter.c Unwrap/rewrap EnterVT/LeaveVT completely, Fixes 28998 2010-07-13 09:58:04 -07:00
xf86VGAarbiter.h xfree86: vgaarb: rework wrapping function 2009-09-16 11:04:24 +10:00
xf86VGAarbiterPriv.h unifdef -B -DRENDER to always include RENDER code 2010-04-19 09:26:10 -07:00
xf86VidMode.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86Xinput.c xfree86: fix compiler warning about implicied decl of DuplicateModule. 2010-09-29 14:07:04 -04:00
xf86Xinput.h xfree86: store the InputAttributes in the input device. 2010-05-25 10:06:50 -07:00
xf86xv.c Unwrap/rewrap EnterVT/LeaveVT completely, Fixes 28998 2010-07-13 09:58:04 -07:00
xf86xv.h XFree86: Xv: Add ClipNotify helper 2009-01-05 11:25:57 +02:00
xf86xvmc.c Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xf86xvmc.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86xvpriv.h XFree86: Xv: Add ClipNotify helper 2009-01-05 11:25:57 +02:00
xisb.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
xisb.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xorgHelper.c xfree86: ANSI cleanups 2009-01-11 08:54:11 +01:00
xorgVersion.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00