Ticket #4572: ScreenPrefFix.diff

File ScreenPrefFix.diff, 834 bytes (added by gerald.zajac, 12 years ago)
  • screen/ScreenMode.cpp

     
    328328            + info.height * info.height) / 0.254) / 10.0;
    329329    }
    330330
     331    // Some older CRT monitors do not contain the monitor range information
     332    // (EDID1_MONITOR_RANGES) in their EDID info resulting in the min/max
     333    // horizontal/vertical frequencies being zero.  In this case, set the
     334    // vertical frequency range to 60..85 Hz.
     335
     336    if (info.min_vertical_frequency == 0) {
     337        info.min_vertical_frequency = 60;
     338        info.max_vertical_frequency = 85;
     339    }
     340
    331341    // TODO: If the names aren't sound, we could see if we find/create a
    332342    // database for the entries with user presentable names; they are fine
    333343    // for the models I could test with so far.