diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-06-08 17:50:32 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-06-08 17:50:32 +0000 |
commit | 7f49513afe9d4490bdfdac182d50383c089875e0 (patch) | |
tree | cfd7c111172ab4b4adca45cdf2cecdce1deedd2f | |
parent | f8de9b4b9a5ce2756652c6b9ec1e84aedbc3519a (diff) |
Fix the mode validation such that using function 5f05 to set the refresh rate
works again.
-rw-r--r-- | src/i830_modes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c index 67399fca..ba77200d 100644 --- a/src/i830_modes.c +++ b/src/i830_modes.c @@ -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; |