Lines Matching refs:randrp

459     XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);  in xf86RandR12GetInfo()  local
463 *rotations = randrp->supported_rotations; in xf86RandR12GetInfo()
465 if (randrp->virtualX == -1 || randrp->virtualY == -1) { in xf86RandR12GetInfo()
466 randrp->virtualX = scrp->virtualX; in xf86RandR12GetInfo()
467 randrp->virtualY = scrp->virtualY; in xf86RandR12GetInfo()
479 if (randrp->maxX == 0 || randrp->maxY == 0) { in xf86RandR12GetInfo()
487 randrp->mmWidth, randrp->mmHeight); in xf86RandR12GetInfo()
493 RRSetCurrentConfig(pScreen, randrp->rotation, refresh, pSize); in xf86RandR12GetInfo()
499 if (randrp->maxX == 0 || randrp->maxY == 0) { in xf86RandR12GetInfo()
500 randrp->maxX = maxX; in xf86RandR12GetInfo()
501 randrp->maxY = maxY; in xf86RandR12GetInfo()
513 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12SetMode() local
525 scrp->virtualX = randrp->virtualX; in xf86RandR12SetMode()
526 scrp->virtualY = randrp->virtualY; in xf86RandR12SetMode()
533 if (randrp->rotation & (RR_Rotate_90 | RR_Rotate_270)) { in xf86RandR12SetMode()
585 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12SetConfig() local
590 Rotation oldRotation = randrp->rotation; in xf86RandR12SetConfig()
594 randrp->rotation = rotation; in xf86RandR12SetConfig()
596 if (randrp->virtualX == -1 || randrp->virtualY == -1) { in xf86RandR12SetConfig()
597 randrp->virtualX = scrp->virtualX; in xf86RandR12SetConfig()
598 randrp->virtualY = scrp->virtualY; in xf86RandR12SetConfig()
609 if (randrp->maxX == 0 || randrp->maxY == 0) { in xf86RandR12SetConfig()
620 if (pSize->width == randrp->virtualX && in xf86RandR12SetConfig()
621 pSize->height == randrp->virtualY) { in xf86RandR12SetConfig()
626 if (randrp->maxX == 0 || randrp->maxY == 0) { in xf86RandR12SetConfig()
627 randrp->maxX = maxX; in xf86RandR12SetConfig()
628 randrp->maxY = maxY; in xf86RandR12SetConfig()
634 if (randrp->maxX == 0 || randrp->maxY == 0) { in xf86RandR12SetConfig()
635 randrp->maxX = maxX; in xf86RandR12SetConfig()
636 randrp->maxY = maxY; in xf86RandR12SetConfig()
641 randrp->rotation = oldRotation; in xf86RandR12SetConfig()
682 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12ScreenSetSize() local
690 if (randrp->virtualX == -1 || randrp->virtualY == -1) { in xf86RandR12ScreenSetSize()
691 randrp->virtualX = pScrn->virtualX; in xf86RandR12ScreenSetSize()
692 randrp->virtualY = pScrn->virtualY; in xf86RandR12ScreenSetSize()
716 xf86RandR13Pan(crtc, randrp->pointerX, randrp->pointerY); in xf86RandR12ScreenSetSize()
723 randrp->mmWidth = pScreen->mmWidth = mmWidth; in xf86RandR12ScreenSetSize()
724 randrp->mmHeight = pScreen->mmHeight = mmHeight; in xf86RandR12ScreenSetSize()
744 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12GetRotation() local
746 return randrp->rotation; in xf86RandR12GetRotation()
754 XF86RandRInfoPtr randrp; in xf86RandR12CreateScreenResources() local
766 randrp = XF86RANDRINFO(pScreen); in xf86RandR12CreateScreenResources()
831 if (randrp->virtualX == -1 || randrp->virtualY == -1) { in xf86RandR12CreateScreenResources()
832 randrp->virtualX = pScrn->virtualX; in xf86RandR12CreateScreenResources()
833 randrp->virtualY = pScrn->virtualY; in xf86RandR12CreateScreenResources()
847 XF86RandRInfoPtr randrp; in xf86RandR12Init() local
866 randrp = malloc(sizeof(XF86RandRInfoRec)); in xf86RandR12Init()
867 if (!randrp) in xf86RandR12Init()
871 free(randrp); in xf86RandR12Init()
878 randrp->virtualX = -1; in xf86RandR12Init()
879 randrp->virtualY = -1; in xf86RandR12Init()
880 randrp->mmWidth = pScreen->mmWidth; in xf86RandR12Init()
881 randrp->mmHeight = pScreen->mmHeight; in xf86RandR12Init()
883 randrp->rotation = RR_Rotate_0; /* initial rotated mode */ in xf86RandR12Init()
885 randrp->supported_rotations = RR_Rotate_0; in xf86RandR12Init()
887 randrp->maxX = randrp->maxY = 0; in xf86RandR12Init()
889 randrp->palette_size = 0; in xf86RandR12Init()
890 randrp->palette = NULL; in xf86RandR12Init()
892 dixSetPrivate(&pScreen->devPrivates, xf86RandR12Key, randrp); in xf86RandR12Init()
904 XF86RandRInfoPtr randrp; in xf86RandR12CloseScreen() local
909 randrp = XF86RANDRINFO(pScreen); in xf86RandR12CloseScreen()
911 xf86ScreenToScrn(pScreen)->EnterVT = randrp->orig_EnterVT; in xf86RandR12CloseScreen()
912 pScreen->ConstrainCursorHarder = randrp->orig_ConstrainCursorHarder; in xf86RandR12CloseScreen()
915 free(randrp->palette); in xf86RandR12CloseScreen()
916 free(randrp); in xf86RandR12CloseScreen()
922 XF86RandRInfoPtr randrp; in xf86RandR12SetRotations() local
933 randrp = XF86RANDRINFO(pScreen); in xf86RandR12SetRotations()
941 randrp->supported_rotations = rotations; in xf86RandR12SetRotations()
976 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12GetOriginalVirtualSize() local
978 *x = randrp->virtualX; in xf86RandR12GetOriginalVirtualSize()
979 *y = randrp->virtualY; in xf86RandR12GetOriginalVirtualSize()
1143 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12CrtcSet() local
1222 xf86RandR13Pan(crtc, randrp->pointerX, randrp->pointerY); in xf86RandR12CrtcSet()
1223 randrp->panning = PANNING_ENABLED (crtc); in xf86RandR12CrtcSet()
1362 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12CrtcSetGamma() local
1368 if (randrp->palette_size) { in xf86RandR12CrtcSetGamma()
1369 xf86RandR12CrtcComputeGamma(crtc, randrp->palette, in xf86RandR12CrtcSetGamma()
1370 randrp->palette_red_size, in xf86RandR12CrtcSetGamma()
1371 randrp->palette_green_size, in xf86RandR12CrtcSetGamma()
1372 randrp->palette_blue_size, in xf86RandR12CrtcSetGamma()
1876 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12PointerMoved() local
1879 randrp->pointerX = x; in xf86RandR12PointerMoved()
1880 randrp->pointerY = y; in xf86RandR12PointerMoved()
1909 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR13SetPanning() local
1914 Bool oldPanning = randrp->panning; in xf86RandR13SetPanning()
1931 xf86RandR13Pan(crtc, randrp->pointerX, randrp->pointerY); in xf86RandR13SetPanning()
1932 randrp->panning = PANNING_ENABLED (crtc); in xf86RandR13SetPanning()
1940 randrp->panning = oldPanning; in xf86RandR13SetPanning()
1968 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12LoadPalette() local
1970 if (randrp->palette_size != palette_size) { in xf86RandR12LoadPalette()
1971 randrp->palette = reallocarray(randrp->palette, palette_size, in xf86RandR12LoadPalette()
1973 if (!randrp->palette) { in xf86RandR12LoadPalette()
1974 randrp->palette_size = 0; in xf86RandR12LoadPalette()
1978 randrp->palette_size = palette_size; in xf86RandR12LoadPalette()
1980 randrp->palette_red_size = reds; in xf86RandR12LoadPalette()
1981 randrp->palette_green_size = greens; in xf86RandR12LoadPalette()
1982 randrp->palette_blue_size = blues; in xf86RandR12LoadPalette()
1988 randrp->palette[index].red = colors[index].red; in xf86RandR12LoadPalette()
1990 randrp->palette[index].green = colors[index].green; in xf86RandR12LoadPalette()
1992 randrp->palette[index].blue = colors[index].blue; in xf86RandR12LoadPalette()
2048 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12EnterVT() local
2053 if (randrp->orig_EnterVT) { in xf86RandR12EnterVT()
2054 pScrn->EnterVT = randrp->orig_EnterVT; in xf86RandR12EnterVT()
2056 randrp->orig_EnterVT = pScrn->EnterVT; in xf86RandR12EnterVT()
2178 XF86RandRInfoPtr randrp = XF86RANDRINFO(screen); in xf86RandR13ConstrainCursorHarder() local
2180 if (randrp->panning) in xf86RandR13ConstrainCursorHarder()
2183 if (randrp->orig_ConstrainCursorHarder) { in xf86RandR13ConstrainCursorHarder()
2184 screen->ConstrainCursorHarder = randrp->orig_ConstrainCursorHarder; in xf86RandR13ConstrainCursorHarder()
2348 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); in xf86RandR12Init12() local
2378 randrp->orig_EnterVT = pScrn->EnterVT; in xf86RandR12Init12()
2381 randrp->panning = FALSE; in xf86RandR12Init12()
2382 randrp->orig_ConstrainCursorHarder = pScreen->ConstrainCursorHarder; in xf86RandR12Init12()