* 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:
@@ -328,6 +328,15 @@ ScreenMode::GetMonitorInfo(monitor_info& info, float* _diagonalInches)
|
|||||||
+ info.height * info.height) / 0.254) / 10.0;
|
+ 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
|
// 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
|
// database for the entries with user presentable names; they are fine
|
||||||
// for the models I could test with so far.
|
// for the models I could test with so far.
|
||||||
|
|||||||
Reference in New Issue
Block a user