Lines Matching refs:randrp
69 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRGetInfo() local
83 RRModeMM.virtX = randrp->virtualX; in xf86RandRGetInfo()
84 RRModeMM.virtY = randrp->virtualY; in xf86RandRGetInfo()
85 RRModeMM.mmWidth = randrp->mmWidth; in xf86RandRGetInfo()
86 RRModeMM.mmHeight = randrp->mmHeight; in xf86RandRGetInfo()
101 RRSetCurrentConfig(pScreen, randrp->rotation, refresh, pSize); in xf86RandRGetInfo()
105 if (scrp->currentMode->HDisplay != randrp->virtualX || in xf86RandRGetInfo()
106 scrp->currentMode->VDisplay != randrp->virtualY) { in xf86RandRGetInfo()
110 RRModeMM.virtX = randrp->virtualX; in xf86RandRGetInfo()
111 RRModeMM.virtY = randrp->virtualY; in xf86RandRGetInfo()
112 RRModeMM.mmWidth = randrp->mmWidth; in xf86RandRGetInfo()
113 RRModeMM.mmHeight = randrp->mmHeight; in xf86RandRGetInfo()
120 randrp->virtualX, randrp->virtualY, in xf86RandRGetInfo()
125 if (scrp->virtualX == randrp->virtualX && in xf86RandRGetInfo()
126 scrp->virtualY == randrp->virtualY) { in xf86RandRGetInfo()
127 RRSetCurrentConfig(pScreen, randrp->rotation, refresh0, pSize); in xf86RandRGetInfo()
150 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRSetMode() local
163 scrp->virtualX = randrp->virtualX; in xf86RandRSetMode()
164 scrp->virtualY = randrp->virtualY; in xf86RandRSetMode()
189 if (randrp->rotation & (RR_Rotate_90 | RR_Rotate_270)) { in xf86RandRSetMode()
233 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRSetConfig() local
237 Rotation oldRotation = randrp->rotation; in xf86RandRSetConfig()
254 if (pSize->width == randrp->virtualX && in xf86RandRSetConfig()
255 pSize->height == randrp->virtualY) { in xf86RandRSetConfig()
264 if (randrp->rotation != rotation) { in xf86RandRSetConfig()
284 randrp->rotation = rotation; in xf86RandRSetConfig()
289 if (randrp->rotation != oldRotation) { in xf86RandRSetConfig()
302 randrp->rotation = oldRotation; in xf86RandRSetConfig()
344 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandRCloseScreen() local
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()
350 free(randrp); in xf86RandRCloseScreen()
370 XF86RandRInfoPtr randrp; in xf86RandRSetNewVirtualAndDimensions() local
375 randrp = XF86RANDRINFO(pScreen); in xf86RandRSetNewVirtualAndDimensions()
376 if (randrp == NULL) in xf86RandRSetNewVirtualAndDimensions()
380 randrp->virtualX = newvirtX; in xf86RandRSetNewVirtualAndDimensions()
383 randrp->virtualY = newvirtY; in xf86RandRSetNewVirtualAndDimensions()
386 randrp->mmWidth = newmmWidth; in xf86RandRSetNewVirtualAndDimensions()
389 randrp->mmHeight = newmmHeight; in xf86RandRSetNewVirtualAndDimensions()
406 XF86RandRInfoPtr randrp; in xf86RandRInit() local
420 randrp = malloc(sizeof(XF86RandRInfoRec)); in xf86RandRInit()
421 if (!randrp) in xf86RandRInit()
425 free(randrp); in xf86RandRInit()
432 randrp->virtualX = scrp->virtualX; in xf86RandRInit()
433 randrp->virtualY = scrp->virtualY; in xf86RandRInit()
434 randrp->mmWidth = pScreen->mmWidth; in xf86RandRInit()
435 randrp->mmHeight = pScreen->mmHeight; in xf86RandRInit()
437 randrp->CloseScreen = pScreen->CloseScreen; in xf86RandRInit()
440 randrp->rotation = RR_Rotate_0; in xf86RandRInit()
442 dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, randrp); in xf86RandRInit()