From 8cdd51d13aa003c888cd2a3a42664e2dc60c354c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 20 Jan 2010 14:55:12 +1300 Subject: [PATCH] tweak default mode list yet again --- hw/xfree86/modes/xf86Crtc.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index 23f4a87..0ce631a 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -1578,7 +1578,7 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY) int min_clock = 0; int max_clock = 0; double clock; - Bool add_default_modes = TRUE; + Bool add_default_modes; Bool debug_modes = config->debug_modes || xf86Initialising; enum { sync_config, sync_edid, sync_default } sync_source = sync_default; @@ -1623,6 +1623,9 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY) } output_modes = (*output->funcs->get_modes) (output); + + /* if the driver found modes, don't second-guess it */ + add_default_modes = (output_modes == NULL); edid_monitor = output->MonInfo; -- 1.6.6