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:
Dave Airlie 2012-05-23 11:37:01 +01:00
parent 20fcd59d3f
commit 6ff612955a
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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);