Lines Matching refs:pScreen
65 xf86RandRGetInfo(ScreenPtr pScreen, Rotation * rotations) in xf86RandRGetInfo() argument
68 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRGetInfo()
69 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRGetInfo()
92 pSize = RRRegisterSize(pScreen, in xf86RandRGetInfo()
97 RRRegisterRate(pScreen, pSize, refresh); in xf86RandRGetInfo()
101 RRSetCurrentConfig(pScreen, randrp->rotation, refresh, pSize); in xf86RandRGetInfo()
119 pSize = RRRegisterSize(pScreen, in xf86RandRGetInfo()
124 RRRegisterRate(pScreen, pSize, refresh0); in xf86RandRGetInfo()
127 RRSetCurrentConfig(pScreen, randrp->rotation, refresh0, pSize); in xf86RandRGetInfo()
145 xf86RandRSetMode(ScreenPtr pScreen, in xf86RandRSetMode() argument
149 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRSetMode()
150 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRSetMode()
151 int oldWidth = pScreen->width; in xf86RandRSetMode()
152 int oldHeight = pScreen->height; in xf86RandRSetMode()
153 int oldmmWidth = pScreen->mmWidth; in xf86RandRSetMode()
154 int oldmmHeight = pScreen->mmHeight; in xf86RandRSetMode()
157 WindowPtr pRoot = pScreen->root; in xf86RandRSetMode()
191 pScreen->width = scrp->virtualY; in xf86RandRSetMode()
192 pScreen->height = scrp->virtualX; in xf86RandRSetMode()
193 pScreen->mmWidth = mmHeight; in xf86RandRSetMode()
194 pScreen->mmHeight = mmWidth; in xf86RandRSetMode()
197 pScreen->width = scrp->virtualX; in xf86RandRSetMode()
198 pScreen->height = scrp->virtualY; in xf86RandRSetMode()
199 pScreen->mmWidth = mmWidth; in xf86RandRSetMode()
200 pScreen->mmHeight = mmHeight; in xf86RandRSetMode()
202 if (!xf86SwitchMode(pScreen, mode)) { in xf86RandRSetMode()
203 pScreen->width = oldWidth; in xf86RandRSetMode()
204 pScreen->height = oldHeight; in xf86RandRSetMode()
205 pScreen->mmWidth = oldmmWidth; in xf86RandRSetMode()
206 pScreen->mmHeight = oldmmHeight; in xf86RandRSetMode()
220 xf86SetViewport (pScreen, pScreen->width, pScreen->height); in xf86RandRSetMode()
221 xf86SetViewport (pScreen, 0, 0); in xf86RandRSetMode()
229 xf86RandRSetConfig(ScreenPtr pScreen, in xf86RandRSetConfig() argument
232 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRSetConfig()
233 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRSetConfig()
288 (pScreen, mode, useVirtual, pSize->mmWidth, pSize->mmHeight)) { in xf86RandRSetConfig()
317 if (pScreen == miPointerGetScreen(dev)) { in xf86RandRSetConfig()
321 px = (px >= pScreen->width ? (pScreen->width - 1) : px); in xf86RandRSetConfig()
322 py = (py >= pScreen->height ? (pScreen->height - 1) : py); in xf86RandRSetConfig()
326 xf86SetViewport(pScreen, px, py); in xf86RandRSetConfig()
330 (*pScreen->SetCursorPosition) (dev, pScreen, px, py, FALSE); in xf86RandRSetConfig()
341 xf86RandRCloseScreen(ScreenPtr pScreen) in xf86RandRCloseScreen() argument
343 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRCloseScreen()
344 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRCloseScreen()
346 scrp->virtualX = pScreen->width = randrp->virtualX; in xf86RandRCloseScreen()
347 scrp->virtualY = pScreen->height = randrp->virtualY; in xf86RandRCloseScreen()
349 pScreen->CloseScreen = randrp->CloseScreen; in xf86RandRCloseScreen()
351 dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, NULL); in xf86RandRCloseScreen()
352 return (*pScreen->CloseScreen) (pScreen); in xf86RandRCloseScreen()
356 xf86GetRotation(ScreenPtr pScreen) in xf86GetRotation() argument
361 return XF86RANDRINFO(pScreen)->rotation; in xf86GetRotation()
366 xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, in xf86RandRSetNewVirtualAndDimensions() argument
375 randrp = XF86RANDRINFO(pScreen); in xf86RandRSetNewVirtualAndDimensions()
393 ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); in xf86RandRSetNewVirtualAndDimensions()
394 return (xf86RandRSetMode(pScreen, in xf86RandRSetNewVirtualAndDimensions()
396 TRUE, pScreen->mmWidth, pScreen->mmHeight)); in xf86RandRSetNewVirtualAndDimensions()
403 xf86RandRInit(ScreenPtr pScreen) in xf86RandRInit() argument
407 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRInit()
424 if (!RRScreenInit(pScreen)) { in xf86RandRInit()
428 rp = rrGetScrPriv(pScreen); in xf86RandRInit()
434 randrp->mmWidth = pScreen->mmWidth; in xf86RandRInit()
435 randrp->mmHeight = pScreen->mmHeight; in xf86RandRInit()
437 randrp->CloseScreen = pScreen->CloseScreen; in xf86RandRInit()
438 pScreen->CloseScreen = xf86RandRCloseScreen; in xf86RandRInit()
442 dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, randrp); in xf86RandRInit()