From 7c087078694a6895a9bcbe62d091665c05a86b5a Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Fri, 27 Aug 2004 12:32:14 +0000 Subject: [PATCH] - Make DDC code more VESA compliant: when MaxClock is set to 0xFF it means 'no value specified'. Therefore setting it to 0. --- hw/xfree86/ddc/interpret_edid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/ddc/interpret_edid.c b/hw/xfree86/ddc/interpret_edid.c index bf2509c95..d5a791570 100644 --- a/hw/xfree86/ddc/interpret_edid.c +++ b/hw/xfree86/ddc/interpret_edid.c @@ -185,7 +185,9 @@ get_monitor_ranges(Uchar *c, struct monitor_ranges *r) r->max_v = MAX_V; r->min_h = MIN_H; r->max_h = MAX_H; - r->max_clock = MAX_CLOCK * 10; + r->max_clock = 0; + if(MAX_CLOCK != 0xff) /* is specified? */ + r->max_clock = MAX_CLOCK * 10; } static void