* 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
This commit is contained in:
Axel Dörfler 2009-12-10 23:26:22 +00:00
parent 2b03fdfe35
commit 1e6b39c341
1 changed files with 9 additions and 0 deletions

View File

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