diff options
author | Robert Hooker <sarvatt@ubuntu.com> | 2010-03-06 14:09:12 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-06 19:51:59 +0000 |
commit | 8ece6cf5afa1bb0d8d9328696422f42f3c3adbd6 (patch) | |
tree | a76170c72c78b6c621ad1a007fb90ab427eefc97 | |
parent | 1cd556420277f103c47ade422f3ec8f8efb2d282 (diff) |
Fix build against xserver 1.6 branch.
Signed-off-by: Robert Hooker <sarvatt@ubuntu.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/drmmode_display.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index b1531bd3..22c967a6 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -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); |