dummy: convert to new scrn conversion APIs.
Generated from util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
20fcd59d3f
commit
6ff612955a
@ -62,7 +62,7 @@ dummyLoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src)
|
||||
static Bool
|
||||
dummyUseHWCursor(ScreenPtr pScr, CursorPtr pCurs)
|
||||
{
|
||||
DUMMYPtr dPtr = DUMMYPTR(xf86Screens[pScr->myNum]);
|
||||
DUMMYPtr dPtr = DUMMYPTR(xf86ScreenToScrn(pScr));
|
||||
return(!dPtr->swCursor);
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ dummyRealizeCursor(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
|
||||
Bool
|
||||
DUMMYCursorInit(ScreenPtr pScreen)
|
||||
{
|
||||
DUMMYPtr dPtr = DUMMYPTR(xf86Screens[pScreen->myNum]);
|
||||
DUMMYPtr dPtr = DUMMYPTR(xf86ScreenToScrn(pScreen));
|
||||
|
||||
xf86CursorInfoPtr infoPtr;
|
||||
infoPtr = xf86CreateCursorInfoRec();
|
||||
|
@ -33,7 +33,7 @@ DGAFunctionRec DUMMYDGAFuncs = {
|
||||
Bool
|
||||
DUMMYDGAInit(ScreenPtr pScreen)
|
||||
{
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
DUMMYPtr pDUMMY = DUMMYPTR(pScrn);
|
||||
DGAModePtr modes = NULL, newmodes = NULL, currentMode;
|
||||
DisplayModePtr pMode, firstMode;
|
||||
|
@ -532,7 +532,7 @@ DUMMYScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
* we need to get the ScrnInfoRec for this screen, so let's allocate
|
||||
* one first thing
|
||||
*/
|
||||
pScrn = xf86Screens[pScreen->myNum];
|
||||
pScrn = xf86ScreenToScrn(pScreen);
|
||||
dPtr = DUMMYPTR(pScrn);
|
||||
DUMMYScrn = pScrn;
|
||||
|
||||
@ -734,7 +734,7 @@ DUMMYSaveScreen(ScreenPtr pScreen, int mode)
|
||||
DUMMYPtr dPtr;
|
||||
|
||||
if (pScreen != NULL) {
|
||||
pScrn = xf86Screens[pScreen->myNum];
|
||||
pScrn = xf86ScreenToScrn(pScreen);
|
||||
dPtr = DUMMYPTR(pScrn);
|
||||
|
||||
dPtr->screenSaver = xf86IsUnblank(mode);
|
||||
|
Loading…
Reference in New Issue
Block a user