- Make DDC code more VESA compliant: when MaxClock is set to 0xFF it means

'no value specified'. Therefore setting it to 0.
This commit is contained in:
Egbert Eich 2004-08-27 12:32:14 +00:00
parent c0bff215de
commit 7c08707869

View File

@ -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