From 8ece6cf5afa1bb0d8d9328696422f42f3c3adbd6 Mon Sep 17 00:00:00 2001 From: Robert Hooker Date: Sat, 6 Mar 2010 14:09:12 -0500 Subject: Fix build against xserver 1.6 branch. Signed-off-by: Robert Hooker Reviewed-by: Chris Wilson --- src/drmmode_display.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3