summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuhong <liuhong@devlinux-hong.sh.intel.com>2008-02-05 10:54:10 +0800
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2008-02-05 12:45:16 -0800
commit4b5b6e7baab58072a983d2ec136965f404c3a74a (patch)
treed3a8f8c94e18aa3de3799cc57c49dd1e5395098c
parenta56ef7aaa4b6ac13c8181f68fc7dad3ca89e6973 (diff)
fix max clock unit
max clock from EDID data is in MHz, while we need KHz to validate modes.
-rw-r--r--hw/xfree86/modes/xf86Crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 10db86267..da035f2b9 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;
}
}
}