Lines Matching refs:pScreenPriv
133 DGAScreenPtr pScreenPriv; in DGAInit() local
145 pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAInit()
147 if (!pScreenPriv) { in DGAInit()
148 if (!(pScreenPriv = (DGAScreenPtr) malloc(sizeof(DGAScreenRec)))) in DGAInit()
150 dixSetPrivate(&pScreen->devPrivates, &DGAScreenKeyRec, pScreenPriv); in DGAInit()
151 pScreenPriv->CloseScreen = pScreen->CloseScreen; in DGAInit()
153 pScreenPriv->DestroyColormap = pScreen->DestroyColormap; in DGAInit()
155 pScreenPriv->InstallColormap = pScreen->InstallColormap; in DGAInit()
157 pScreenPriv->UninstallColormap = pScreen->UninstallColormap; in DGAInit()
161 pScreenPriv->pScrn = pScrn; in DGAInit()
162 pScreenPriv->numModes = num; in DGAInit()
163 pScreenPriv->modes = modes; in DGAInit()
164 pScreenPriv->current = NULL; in DGAInit()
166 pScreenPriv->funcs = funcs; in DGAInit()
167 pScreenPriv->input = 0; in DGAInit()
168 pScreenPriv->client = NULL; in DGAInit()
169 pScreenPriv->fakedVisuals = NULL; in DGAInit()
170 pScreenPriv->dgaColormap = NULL; in DGAInit()
171 pScreenPriv->savedColormap = NULL; in DGAInit()
172 pScreenPriv->grabMouse = FALSE; in DGAInit()
173 pScreenPriv->grabKeyboard = FALSE; in DGAInit()
194 DGAScreenPtr pScreenPriv; in DGAReInitModes() local
201 pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAReInitModes()
204 if (!pScreenPriv) in DGAReInitModes()
208 if (pScreenPriv->current) in DGAReInitModes()
217 pScreenPriv->numModes = num; in DGAReInitModes()
218 pScreenPriv->modes = modes; in DGAReInitModes()
239 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in FreeMarkedVisuals() local
242 if (!pScreenPriv->fakedVisuals) in FreeMarkedVisuals()
246 curr = pScreenPriv->fakedVisuals; in FreeMarkedVisuals()
255 pScreenPriv->fakedVisuals = curr; in FreeMarkedVisuals()
269 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGACloseScreen() local
278 pScreen->CloseScreen = pScreenPriv->CloseScreen; in DGACloseScreen()
279 pScreen->DestroyColormap = pScreenPriv->DestroyColormap; in DGACloseScreen()
280 pScreen->InstallColormap = pScreenPriv->InstallColormap; in DGACloseScreen()
281 pScreen->UninstallColormap = pScreenPriv->UninstallColormap; in DGACloseScreen()
286 free(pScreenPriv); in DGACloseScreen()
295 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGADestroyColormap() local
298 if (pScreenPriv->fakedVisuals) { in DGADestroyColormap()
299 FakedVisualList *curr = pScreenPriv->fakedVisuals; in DGADestroyColormap()
312 if (pScreenPriv->DestroyColormap) { in DGADestroyColormap()
313 pScreen->DestroyColormap = pScreenPriv->DestroyColormap; in DGADestroyColormap()
323 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAInstallColormap() local
325 if (pScreenPriv->current && pScreenPriv->dgaColormap) { in DGAInstallColormap()
326 if (pmap != pScreenPriv->dgaColormap) { in DGAInstallColormap()
327 pScreenPriv->savedColormap = pmap; in DGAInstallColormap()
328 pmap = pScreenPriv->dgaColormap; in DGAInstallColormap()
332 pScreen->InstallColormap = pScreenPriv->InstallColormap; in DGAInstallColormap()
341 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAUninstallColormap() local
343 if (pScreenPriv->current && pScreenPriv->dgaColormap) { in DGAUninstallColormap()
344 if (pmap == pScreenPriv->dgaColormap) { in DGAUninstallColormap()
345 pScreenPriv->dgaColormap = NULL; in DGAUninstallColormap()
349 pScreen->UninstallColormap = pScreenPriv->UninstallColormap; in DGAUninstallColormap()
358 DGAScreenPtr pScreenPriv; in xf86SetDGAMode() local
366 pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in xf86SetDGAMode()
367 if (!pScreenPriv) in xf86SetDGAMode()
371 if (pScreenPriv->current) { in xf86SetDGAMode()
372 PixmapPtr oldPix = pScreenPriv->current->pPix; in xf86SetDGAMode()
380 free(pScreenPriv->current); in xf86SetDGAMode()
381 pScreenPriv->current = NULL; in xf86SetDGAMode()
383 (*pScreenPriv->funcs->SetMode) (pScrn, NULL); in xf86SetDGAMode()
384 if (pScreenPriv->savedColormap) { in xf86SetDGAMode()
385 (*pScreen->InstallColormap) (pScreenPriv->savedColormap); in xf86SetDGAMode()
386 pScreenPriv->savedColormap = NULL; in xf86SetDGAMode()
388 pScreenPriv->dgaColormap = NULL; in xf86SetDGAMode()
394 pScreenPriv->grabMouse = FALSE; in xf86SetDGAMode()
395 pScreenPriv->grabKeyboard = FALSE; in xf86SetDGAMode()
400 if (!pScrn->vtSema && !pScreenPriv->current) /* Really switched away */ in xf86SetDGAMode()
403 if ((num > 0) && (num <= pScreenPriv->numModes)) in xf86SetDGAMode()
404 pMode = &(pScreenPriv->modes[num - 1]); in xf86SetDGAMode()
411 if (!pScreenPriv->current) { in xf86SetDGAMode()
419 if (!(*pScreenPriv->funcs->SetMode) (pScrn, pMode)) { in xf86SetDGAMode()
426 if (!pScreenPriv->current && !pScreenPriv->input) { in xf86SetDGAMode()
433 if (pScreenPriv->current) { in xf86SetDGAMode()
434 PixmapPtr oldPix = pScreenPriv->current->pPix; in xf86SetDGAMode()
442 free(pScreenPriv->current); in xf86SetDGAMode()
443 pScreenPriv->current = NULL; in xf86SetDGAMode()
459 pScreenPriv->current = device; in xf86SetDGAMode()
460 pScreenPriv->pixmapMode = FALSE; in xf86SetDGAMode()
461 pScreenPriv->grabMouse = TRUE; in xf86SetDGAMode()
462 pScreenPriv->grabKeyboard = TRUE; in xf86SetDGAMode()
478 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGASetInputMode() local
480 if (pScreenPriv) { in DGASetInputMode()
481 pScreenPriv->grabMouse = mouse; in DGASetInputMode()
482 pScreenPriv->grabKeyboard = keyboard; in DGASetInputMode()
494 DGAScreenPtr pScreenPriv; in DGAChangePixmapMode() local
502 pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAChangePixmapMode()
504 if (!pScreenPriv || !pScreenPriv->current || !pScreenPriv->current->pPix) in DGAChangePixmapMode()
507 pDev = pScreenPriv->current; in DGAChangePixmapMode()
547 pScreenPriv->pixmapMode = mode; in DGAChangePixmapMode()
576 DGAScreenPtr pScreenPriv; in DGAActive() local
581 pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAActive()
583 if (pScreenPriv && pScreenPriv->current) in DGAActive()
632 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGASelectInput() local
635 pScreenPriv->client = client; in DGASelectInput()
636 pScreenPriv->input = mask; in DGASelectInput()
642 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAGetViewportStatus() local
646 if (!pScreenPriv->funcs->GetViewport) in DGAGetViewportStatus()
649 return (*pScreenPriv->funcs->GetViewport) (pScreenPriv->pScrn); in DGAGetViewportStatus()
655 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGASetViewport() local
657 if (pScreenPriv->funcs->SetViewport) in DGASetViewport()
658 (*pScreenPriv->funcs->SetViewport) (pScreenPriv->pScrn, x, y, mode); in DGASetViewport()
682 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGACreateColormap() local
688 if (!mode || (mode > pScreenPriv->numModes)) in DGACreateColormap()
694 pMode = &(pScreenPriv->modes[mode - 1]); in DGACreateColormap()
737 fvlp->next = pScreenPriv->fakedVisuals; in DGACreateColormap()
738 pScreenPriv->fakedVisuals = fvlp; in DGACreateColormap()
751 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAInstallCmap() local
755 if (!pScreenPriv->dgaColormap) in DGAInstallCmap()
756 pScreenPriv->savedColormap = GetInstalledmiColormap(pScreen); in DGAInstallCmap()
758 pScreenPriv->dgaColormap = cmap; in DGAInstallCmap()
766 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGASync() local
770 if (pScreenPriv->funcs->Sync) in DGASync()
771 (*pScreenPriv->funcs->Sync) (pScreenPriv->pScrn); in DGASync()
779 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAFillRect() local
783 if (pScreenPriv->funcs->FillRect && in DGAFillRect()
784 (pScreenPriv->current->mode->flags & DGA_FILL_RECT)) { in DGAFillRect()
786 (*pScreenPriv->funcs->FillRect) (pScreenPriv->pScrn, x, y, w, h, color); in DGAFillRect()
795 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGABlitRect() local
799 if (pScreenPriv->funcs->BlitRect && in DGABlitRect()
800 (pScreenPriv->current->mode->flags & DGA_BLIT_RECT)) { in DGABlitRect()
802 (*pScreenPriv->funcs->BlitRect) (pScreenPriv->pScrn, in DGABlitRect()
814 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGABlitTransRect() local
818 if (pScreenPriv->funcs->BlitTransRect && in DGABlitTransRect()
819 (pScreenPriv->current->mode->flags & DGA_BLIT_RECT_TRANS)) { in DGABlitTransRect()
821 (*pScreenPriv->funcs->BlitTransRect) (pScreenPriv->pScrn, in DGABlitTransRect()
832 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAGetModes() local
836 return pScreenPriv->numModes; in DGAGetModes()
842 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAGetModeInfo() local
846 if ((num <= 0) || (num > pScreenPriv->numModes)) in DGAGetModeInfo()
849 DGACopyModeInfo(&(pScreenPriv->modes[num - 1]), mode); in DGAGetModeInfo()
905 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAVTSwitch() local
907 if (pScreenPriv && pScreenPriv->current) in DGAVTSwitch()
918 DGAScreenPtr pScreenPriv; in DGAStealKeyEvent() local
927 pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAStealKeyEvent()
929 if (!pScreenPriv || !pScreenPriv->grabKeyboard) /* no direct mode */ in DGAStealKeyEvent()
950 DGAScreenPtr pScreenPriv; in DGAStealMotionEvent() local
956 pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAStealMotionEvent()
958 if (!pScreenPriv || !pScreenPriv->grabMouse) /* no direct mode */ in DGAStealMotionEvent()
978 DGAScreenPtr pScreenPriv; in DGAStealButtonEvent() local
984 pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAStealButtonEvent()
986 if (!pScreenPriv || !pScreenPriv->grabMouse) in DGAStealButtonEvent()
1021 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAProcessKeyboardEvent() local
1042 if (pScreenPriv->client) { in DGAProcessKeyboardEvent()
1054 TryClientEvents(pScreenPriv->client, keybd, (xEvent *) &de, 1, in DGAProcessKeyboardEvent()
1055 filters[ev.type], pScreenPriv->input, 0); in DGAProcessKeyboardEvent()
1075 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAProcessPointerEvent() local
1096 if (pScreenPriv->client) { in DGAProcessPointerEvent()
1109 TryClientEvents(pScreenPriv->client, mouse, (xEvent *) &de, 1, in DGAProcessPointerEvent()
1110 filters[coreEquiv], pScreenPriv->input, 0); in DGAProcessPointerEvent()
1134 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAOpenFramebuffer() local
1138 return (*pScreenPriv->funcs->OpenFramebuffer) (pScreenPriv->pScrn, in DGAOpenFramebuffer()
1146 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGACloseFramebuffer() local
1149 if (pScreenPriv->funcs->CloseFramebuffer) in DGACloseFramebuffer()
1150 (*pScreenPriv->funcs->CloseFramebuffer) (pScreenPriv->pScrn); in DGACloseFramebuffer()
1158 DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]); in DGAGetOldDGAMode() local
1159 ScrnInfoPtr pScrn = pScreenPriv->pScrn; in DGAGetOldDGAMode()
1169 for (i = 0; i < pScreenPriv->numModes; i++) { in DGAGetOldDGAMode()
1170 mode = &(pScreenPriv->modes[i]); in DGAGetOldDGAMode()
1189 DGAScreenPtr pScreenPriv; in DGAHandleEvent() local
1194 pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen); in DGAHandleEvent()
1197 if (!pScreenPriv) in DGAHandleEvent()