xorg-x11-server/xserver-1.6.99-default-modes.patch
Peter Hutterer 5280401df9 * Thu Mar 04 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.7.99.901-10.20100304
- Update to today's git.
- BuildRequires libselinux-devel >= 2.0.86
2010-03-04 05:40:17 +00:00

36 lines
1.1 KiB
Diff

From ca85ebddd804305322014c6a71b4122a56c5e634 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Thu, 4 Mar 2010 15:18:38 +1000
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 03277be..571ffd0 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1582,7 +1582,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 det_monrec_source sync_source = sync_default;
@@ -1628,6 +1628,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.1