summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_modes.c6
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;