From 75f0033ec41a34bbe695cfd4a9bc9aa60e919c99 Mon Sep 17 00:00:00 2001 From: Wang Zhenyu Date: Sun, 31 Dec 2006 15:16:59 +0800 Subject: [PATCH] Issue current virtual size to mode valid. Revert change in rotation patch. --- src/i830_xf86Crtc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);