Fix build against xserver 1.6 branch.

Signed-off-by: Robert Hooker <sarvatt@ubuntu.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Robert Hooker 2010-03-06 14:09:12 -05:00 committed by Chris Wilson
parent 1cd5564202
commit 8ece6cf5af
1 changed files with 4 additions and 0 deletions

View File

@ -701,7 +701,11 @@ drmmode_output_lvds_edid(xf86OutputPtr output, DisplayModePtr modes)
max_vrefresh = max(max_vrefresh, 60.0);
max_vrefresh *= (1 + SYNC_TOLERANCE);
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,6,99,0,0)
m = xf86GetDefaultModes();
#else
m = xf86GetDefaultModes(0,0);
#endif
xf86ValidateModesSize(output->scrn, m, max_x, max_y, 0);