catch DIV by 0 for 0 dimension from modeline
BUG :313996 FIXED-IN: 4.10
This commit is contained in:
parent
fb356a8bef
commit
22f5769e74
1 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@ int currentRefreshRate()
|
|||
dotclock *= 2;
|
||||
if (modeline.flags & 0x0020) // V_DBLSCAN
|
||||
vtotal *= 2;
|
||||
if (modeline.htotal*vtotal) // BUG 313996
|
||||
rate = 1000*dotclock/(modeline.htotal*vtotal); // WTF was wikipedia 1998 when I nedded it?
|
||||
kDebug(1212) << "Vertical Refresh Rate (as detected by XF86VM): " << rate << "Hz";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue