From 2013b839de3733fd12becb2cc3c1daadde329eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 28 Sep 2006 13:49:44 +0200 Subject: [PATCH] Always call I830UpdateXineramaScreenInfo() unconditionally, and document why. --- src/i830_driver.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index fc768af9..2506f53e 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2064,9 +2064,6 @@ I830XineramaExtensionInit(ScrnInfoPtr pScrn) pI830->I830XineramaVY = 0; } - - I830UpdateXineramaScreenInfo(pScrn); - } static void @@ -7491,6 +7488,9 @@ I830BIOSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) xf86DrvMsg(pScrn->scrnIndex, X_INFO, "libshadow is version %d.%d.%d, required 1.1.0 or greater for rotation.\n",pI830->shadowReq.majorversion,pI830->shadowReq.minorversion,pI830->shadowReq.patchlevel); } + /* Call this unconditionally, as it also sets some fields in the SAREA */ + I830UpdateXineramaScreenInfo(pScrn); + if (serverGeneration == 1) xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options); @@ -8235,6 +8235,7 @@ I830BIOSSwitchMode(int scrnIndex, DisplayModePtr mode, int flags) /* Since RandR (indirectly) uses SwitchMode(), we need to * update our Xinerama info here, too, in case of resizing + * Call this unconditionally, as it also sets some fields in the SAREA */ I830UpdateXineramaScreenInfo(pScrn);