diff --git a/src/i830_xf86Crtc.c b/src/i830_xf86Crtc.c index 6e836bdf..0c482a2e 100644 --- a/src/i830_xf86Crtc.c +++ b/src/i830_xf86Crtc.c @@ -517,7 +517,6 @@ xf86SetScrnInfoModes (ScrnInfoPtr pScrn) xf86CrtcPtr crtc; DisplayModePtr last, mode; int originalVirtualX, originalVirtualY; - I830Ptr pI830 = I830PTR(pScrn); output = config->output[config->compat_output]; if (!output->crtc) @@ -550,10 +549,9 @@ xf86SetScrnInfoModes (ScrnInfoPtr pScrn) /* Disable modes in the XFree86 DDX list that are larger than the current * virtual size. */ - /* pass real line pitch, rotation might change this */ i830xf86ValidateModesSize(pScrn, pScrn->modes, originalVirtualX, originalVirtualY, - pI830->displayWidth); + pScrn->displayWidth); /* Strip out anything that we threw out for virtualX/Y. */ i830xf86PruneInvalidModes(pScrn, &pScrn->modes, TRUE);