mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 17:18:11 +02:00
xaa: convert pScrn->pScreen to use accessor.
This uses a standard conversion function to do the conversion. Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
738367ac9b
commit
e7a9e30fd2
2 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ XAADestroyInfoRec(XAAInfoRecPtr infoRec)
|
|||
return;
|
||||
|
||||
if (infoRec->ClosePixmapCache)
|
||||
(*infoRec->ClosePixmapCache) (infoRec->pScrn->pScreen);
|
||||
(*infoRec->ClosePixmapCache) (xf86ScrnToScreen(infoRec->pScrn));
|
||||
|
||||
free(infoRec->PreAllocMem);
|
||||
|
||||
|
|
|
|||
|
|
@ -2015,7 +2015,7 @@ XAAWriteBitmapToCacheLinear(ScrnInfoPtr pScrn,
|
|||
int x, int y, int w, int h,
|
||||
unsigned char *src, int srcwidth, int fg, int bg)
|
||||
{
|
||||
ScreenPtr pScreen = pScrn->pScreen;
|
||||
ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
|
||||
PixmapPtr pScreenPix, pDstPix;
|
||||
ChangeGCVal gcvals[2];
|
||||
GCPtr pGC;
|
||||
|
|
@ -2061,7 +2061,7 @@ XAAWritePixmapToCacheLinear(ScrnInfoPtr pScrn,
|
|||
unsigned char *src,
|
||||
int srcwidth, int bpp, int depth)
|
||||
{
|
||||
ScreenPtr pScreen = pScrn->pScreen;
|
||||
ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
|
||||
PixmapPtr pScreenPix, pDstPix;
|
||||
GCPtr pGC;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue