[PATCH 1/4] xf86/modes: drop two uses of screenInfo

Keith Packard keithp at keithp.com
Tue May 15 08:16:33 PDT 2012


On Mon, 14 May 2012 13:00:20 +0100, Dave Airlie <airlied at gmail.com> wrote:

> -    /* if this is called during ScreenInit() we don't have pScrn->pScreen yet */
> -    ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex];
> +    ScreenPtr pScreen = xf86ScrnToScreen(pScrn);

I assume your fine new macro doesn't have a problem with pScrn->pScreen
not being set yet?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120515/695b6292/attachment.pgp>


More information about the xorg-devel mailing list