Fix the mode validation such that using function 5f05 to set the refresh rate
works again.
This commit is contained in:
parent
f8de9b4b9a
commit
7f49513afe
|
|
@ -389,16 +389,16 @@ CheckMode(ScrnInfoPtr pScrn, vbeInfoPtr pVbe, VbeInfoBlock *vbe, int id,
|
|||
|
||||
/*
|
||||
* Check if there's a valid monitor mode that this one can be matched
|
||||
* up with from the specified modes list.
|
||||
* up with from the 'specified' modes list.
|
||||
*/
|
||||
if (modeOK) {
|
||||
for (p = pScrn->monitor->Modes; p != NULL; p = p->next) {
|
||||
if ((p->HDisplay != mode->XResolution) ||
|
||||
if ((p->type != 0) ||
|
||||
(p->HDisplay != mode->XResolution) ||
|
||||
(p->VDisplay != mode->YResolution) ||
|
||||
(p->Flags & (V_INTERLACE | V_DBLSCAN | V_CLKDIV2)))
|
||||
continue;
|
||||
status = xf86CheckModeForMonitor(p, pScrn->monitor);
|
||||
if (p->type == M_T_BUILTIN) continue;
|
||||
if (status == MODE_OK) {
|
||||
modeOK = TRUE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue