Author: axeld Date: 2009-12-11 00:26:22 +0100 (Fri, 11 Dec 2009) New Revision: 34627 Changeset: http://dev.haiku-os.org/changeset/34627/haiku Ticket: http://dev.haiku-os.org/ticket/4572 Modified: haiku/trunk/src/preferences/screen/ScreenMode.cpp Log: * Patch by Gerald to set a fallback range in case no EDID info was provided. * This fixes bug #4572. Modified: haiku/trunk/src/preferences/screen/ScreenMode.cpp =================================================================== --- haiku/trunk/src/preferences/screen/ScreenMode.cpp 2009-12-10 22:04:51 UTC (rev 34626) +++ haiku/trunk/src/preferences/screen/ScreenMode.cpp 2009-12-10 23:26:22 UTC (rev 34627) @@ -328,6 +328,15 @@ + info.height * info.height) / 0.254) / 10.0; } + // Some older CRT monitors do not contain the monitor range information + // (EDID1_MONITOR_RANGES) in their EDID info resulting in the min/max + // horizontal/vertical frequencies being zero. In this case, set the + // vertical frequency range to 60..85 Hz. + if (info.min_vertical_frequency == 0) { + info.min_vertical_frequency = 60; + info.max_vertical_frequency = 85; + } + // TODO: If the names aren't sound, we could see if we find/create a // database for the entries with user presentable names; they are fine // for the models I could test with so far.