From 1e6b39c341e64d16581478b65b7d7d17ca4cda9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Dec 2009 23:26:22 +0000 Subject: [PATCH] * Patch by Gerald to set a fallback range in case no EDID info was provided. * This fixes bug #4572. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34627 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/screen/ScreenMode.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/preferences/screen/ScreenMode.cpp b/src/preferences/screen/ScreenMode.cpp index 848f6b6527..745b0928e7 100644 --- a/src/preferences/screen/ScreenMode.cpp +++ b/src/preferences/screen/ScreenMode.cpp @@ -328,6 +328,15 @@ ScreenMode::GetMonitorInfo(monitor_info& info, float* _diagonalInches) + 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.