From 322cc27f3427eb3ab3467770c68baf2cf4071fb3 Mon Sep 17 00:00:00 2001 From: liuhong Date: Tue, 5 Feb 2008 10:54:10 +0800 Subject: [PATCH] fix max clock unit max clock from EDID data is in MHz, while we need KHz to validate modes. --- hw/xfree86/modes/xf86Crtc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index 10db862..da035f2 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -1362,8 +1362,8 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY) if (sync_source == sync_default) sync_source = sync_edid; } - if (ranges->max_clock > max_clock) - max_clock = ranges->max_clock; + if (ranges->max_clock * 1000 > max_clock) + max_clock = ranges->max_clock * 1000; } } } -- 1.5.2