Lines 342-348
Link Here
|
342 |
* then, by this point, you're well into despair territory. |
342 |
* then, by this point, you're well into despair territory. |
343 |
*/ |
343 |
*/ |
344 |
for (v = mon->vrefresh[0].lo; v <= mon->vrefresh[0].hi; v++) { |
344 |
for (v = mon->vrefresh[0].lo; v <= mon->vrefresh[0].hi; v++) { |
|
|
345 |
#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(1,4,2,0,0) |
346 |
/* xf86GTFMode is only avalaible in newer versions of Xorg */ |
345 |
mode = xf86GTFMode(p->HDisplay, p->VDisplay, v, 0, 0); |
347 |
mode = xf86GTFMode(p->HDisplay, p->VDisplay, v, 0, 0); |
|
|
348 |
#else |
349 |
mode = xf86CVTMode(p->HDisplay, p->VDisplay, v, FALSE, FALSE); |
350 |
#endif |
346 |
ret = xf86CheckModeForMonitor(mode, mon); |
351 |
ret = xf86CheckModeForMonitor(mode, mon); |
347 |
xfree(mode); |
352 |
xfree(mode); |
348 |
if (ret == MODE_OK) |
353 |
if (ret == MODE_OK) |