mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
xf86: migrate to using xf86ScreenToScrn wrapper (v2)
migrate to new helper API. This just wraps all the obvious uses of xf86Screens[pScreen->myNum], and should be fairly simple to review. v2: remove commented out lines. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
53932b3803
commit
41151f88a6
31 changed files with 92 additions and 94 deletions
|
|
@ -686,7 +686,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
|
|||
const char *driverName, *deviceName;
|
||||
__GLXDRIscreen *screen;
|
||||
size_t buffer_size;
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
|
||||
screen = calloc(1, sizeof *screen);
|
||||
if (screen == NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue