Lines Matching refs:pScreenPriv
99 hbmp = CreateCompatibleBitmap(pScreenPriv->hdcScreen, 1, 1); in winQueryScreenDIBFormat()
110 if (!GetDIBits(pScreenPriv->hdcScreen, in winQueryScreenDIBFormat()
126 if (!GetDIBits(pScreenPriv->hdcScreen, in winQueryScreenDIBFormat()
155 if (GetDeviceCaps(pScreenPriv->hdcScreen, RASTERCAPS) & RC_PALETTE) { in winQueryRGBBitsAndMasks()
160 pScreenPriv->dwBitsPerRGB = 8; in winQueryRGBBitsAndMasks()
161 pScreenPriv->dwRedMask = 0x0L; in winQueryRGBBitsAndMasks()
162 pScreenPriv->dwGreenMask = 0x0L; in winQueryRGBBitsAndMasks()
163 pScreenPriv->dwBlueMask = 0x0L; in winQueryRGBBitsAndMasks()
168 if (GetDeviceCaps(pScreenPriv->hdcScreen, PLANES) in winQueryRGBBitsAndMasks()
169 * GetDeviceCaps(pScreenPriv->hdcScreen, BITSPIXEL) == 24) { in winQueryRGBBitsAndMasks()
174 pScreenPriv->dwBitsPerRGB = 8; in winQueryRGBBitsAndMasks()
177 pScreenPriv->dwRedMask = WIN_24BPP_MASK_RED; in winQueryRGBBitsAndMasks()
178 pScreenPriv->dwGreenMask = WIN_24BPP_MASK_GREEN; in winQueryRGBBitsAndMasks()
179 pScreenPriv->dwBlueMask = WIN_24BPP_MASK_BLUE; in winQueryRGBBitsAndMasks()
226 pScreenPriv->dwBitsPerRGB = 5; in winQueryRGBBitsAndMasks()
229 pScreenPriv->dwRedMask = 0x7c00; in winQueryRGBBitsAndMasks()
230 pScreenPriv->dwGreenMask = 0x03e0; in winQueryRGBBitsAndMasks()
231 pScreenPriv->dwBlueMask = 0x001f; in winQueryRGBBitsAndMasks()
241 pScreenPriv->dwBitsPerRGB = dwRedBits; in winQueryRGBBitsAndMasks()
243 pScreenPriv->dwBitsPerRGB = dwGreenBits; in winQueryRGBBitsAndMasks()
245 pScreenPriv->dwBitsPerRGB = dwBlueBits; in winQueryRGBBitsAndMasks()
248 pScreenPriv->dwRedMask = pdw[0]; in winQueryRGBBitsAndMasks()
249 pScreenPriv->dwGreenMask = pdw[1]; in winQueryRGBBitsAndMasks()
250 pScreenPriv->dwBlueMask = pdw[2]; in winQueryRGBBitsAndMasks()
318 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winAllocateFBShadowGDI()
323 pScreenPriv->pbmih->biWidth = pScreenInfo->dwWidth; in winAllocateFBShadowGDI()
324 pScreenPriv->pbmih->biHeight = -pScreenInfo->dwHeight; in winAllocateFBShadowGDI()
328 (int) pScreenPriv->pbmih->biWidth, in winAllocateFBShadowGDI()
329 (int) -pScreenPriv->pbmih->biHeight, pScreenPriv->pbmih->biBitCount); in winAllocateFBShadowGDI()
332 pScreenPriv->hbmpShadow = CreateDIBSection(pScreenPriv->hdcScreen, in winAllocateFBShadowGDI()
333 (BITMAPINFO *) pScreenPriv-> in winAllocateFBShadowGDI()
337 if (pScreenPriv->hbmpShadow == NULL || pScreenInfo->pfb == NULL) { in winAllocateFBShadowGDI()
348 GetObject(pScreenPriv->hbmpShadow, sizeof(dibsection), &dibsection); in winAllocateFBShadowGDI()
359 SelectObject(pScreenPriv->hdcShadow, pScreenPriv->hbmpShadow); in winAllocateFBShadowGDI()
366 fReturn = BitBlt(pScreenPriv->hdcScreen, in winAllocateFBShadowGDI()
369 pScreenPriv->hdcShadow, 0, 0, SRCCOPY); in winAllocateFBShadowGDI()
413 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winFreeFBShadowGDI()
416 DeleteObject(pScreenPriv->hbmpShadow); in winFreeFBShadowGDI()
430 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winShadowUpdateGDI()
448 if ((!pScreenPriv->fActive && pScreenInfo->fFullScreen) in winShadowUpdateGDI()
449 || pScreenPriv->fBadDepth) in winShadowUpdateGDI()
488 BitBlt(pScreenPriv->hdcScreen, in winShadowUpdateGDI()
489 x, y, w, h, pScreenPriv->hdcShadow, x, y, SRCCOPY); in winShadowUpdateGDI()
503 SelectClipRgn(pScreenPriv->hdcScreen, hrgnCombined); in winShadowUpdateGDI()
511 BitBlt(pScreenPriv->hdcScreen, in winShadowUpdateGDI()
515 pScreenPriv->hdcShadow, in winShadowUpdateGDI()
519 SelectClipRgn(pScreenPriv->hdcScreen, NULL); in winShadowUpdateGDI()
535 pScreenPriv->hdcScreen = GetDC(pScreenPriv->hwndScreen); in winInitScreenShadowGDI()
536 pScreenPriv->hdcShadow = CreateCompatibleDC(pScreenPriv->hdcScreen); in winInitScreenShadowGDI()
539 pScreenPriv->pbmih = malloc(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD)); in winInitScreenShadowGDI()
540 if (pScreenPriv->pbmih == NULL) { in winInitScreenShadowGDI()
546 if (!winQueryScreenDIBFormat(pScreen, pScreenPriv->pbmih)) { in winInitScreenShadowGDI()
570 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winCloseScreenShadowGDI()
578 pScreenPriv->fClosed = TRUE; in winCloseScreenShadowGDI()
579 pScreenPriv->fActive = FALSE; in winCloseScreenShadowGDI()
587 RemoveProp(pScreenPriv->hwndScreen, WIN_SCR_PROP); in winCloseScreenShadowGDI()
590 DeleteDC(pScreenPriv->hdcShadow); in winCloseScreenShadowGDI()
595 ReleaseDC(pScreenPriv->hwndScreen, pScreenPriv->hdcScreen); in winCloseScreenShadowGDI()
599 winDeleteNotifyIcon(pScreenPriv); in winCloseScreenShadowGDI()
608 if (pScreenPriv->hwndScreen) { in winCloseScreenShadowGDI()
609 DestroyWindow(pScreenPriv->hwndScreen); in winCloseScreenShadowGDI()
610 pScreenPriv->hwndScreen = NULL; in winCloseScreenShadowGDI()
614 pthread_mutex_destroy(&pScreenPriv->pmServerStarted); in winCloseScreenShadowGDI()
620 free((void *) pScreenPriv); in winCloseScreenShadowGDI()
637 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winInitVisualsShadowGDI()
642 (unsigned int) pScreenPriv->dwRedMask, in winInitVisualsShadowGDI()
643 (unsigned int) pScreenPriv->dwGreenMask, in winInitVisualsShadowGDI()
644 (unsigned int) pScreenPriv->dwBlueMask, in winInitVisualsShadowGDI()
645 (int) pScreenPriv->dwBitsPerRGB, in winInitVisualsShadowGDI()
656 pScreenPriv->dwBitsPerRGB, in winInitVisualsShadowGDI()
658 pScreenPriv->dwRedMask, in winInitVisualsShadowGDI()
659 pScreenPriv->dwGreenMask, in winInitVisualsShadowGDI()
660 pScreenPriv->dwBlueMask)) { in winInitVisualsShadowGDI()
682 pScreenPriv->dwBitsPerRGB, in winInitVisualsShadowGDI()
684 pScreenPriv->dwRedMask, in winInitVisualsShadowGDI()
685 pScreenPriv->dwGreenMask, in winInitVisualsShadowGDI()
686 pScreenPriv->dwBlueMask)) { in winInitVisualsShadowGDI()
713 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winAdjustVideoModeShadowGDI()
746 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winBltExposedRegionsShadowGDI()
752 hdcUpdate = BeginPaint(pScreenPriv->hwndScreen, &ps); in winBltExposedRegionsShadowGDI()
755 if (pScreenPriv->pcmapInstalled != NULL) { in winBltExposedRegionsShadowGDI()
756 pCmapPriv = winGetCmapPriv(pScreenPriv->pcmapInstalled); in winBltExposedRegionsShadowGDI()
766 pScreenPriv->hdcShadow, 0, 0, SRCCOPY); in winBltExposedRegionsShadowGDI()
769 EndPaint(pScreenPriv->hwndScreen, &ps); in winBltExposedRegionsShadowGDI()
774 (LPARAM) pScreenPriv->hwndScreen); in winBltExposedRegionsShadowGDI()
787 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winActivateAppShadowGDI()
804 if (pScreenPriv->fActive && pScreenInfo->fFullScreen) { in winActivateAppShadowGDI()
809 ShowWindow(pScreenPriv->hwndScreen, SW_RESTORE); in winActivateAppShadowGDI()
811 else if (!pScreenPriv->fActive && pScreenInfo->fFullScreen) { in winActivateAppShadowGDI()
816 ShowWindow(pScreenPriv->hwndScreen, SW_MINIMIZE); in winActivateAppShadowGDI()
830 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winRedrawScreenShadowGDI()
833 BitBlt(pScreenPriv->hdcScreen, in winRedrawScreenShadowGDI()
836 pScreenPriv->hdcShadow, 0, 0, SRCCOPY); in winRedrawScreenShadowGDI()
860 if (pScreenPriv->pcmapInstalled == NULL) { in winRealizeInstalledPaletteShadowGDI()
868 pCmapPriv = winGetCmapPriv(pScreenPriv->pcmapInstalled); in winRealizeInstalledPaletteShadowGDI()
871 if (RealizePalette(pScreenPriv->hdcScreen) == GDI_ERROR) { in winRealizeInstalledPaletteShadowGDI()
878 if (SetDIBColorTable(pScreenPriv->hdcShadow, in winRealizeInstalledPaletteShadowGDI()
899 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winInstallColormapShadowGDI()
906 if (SelectPalette(pScreenPriv->hdcScreen, in winInstallColormapShadowGDI()
913 if (GDI_ERROR == RealizePalette(pScreenPriv->hdcScreen)) { in winInstallColormapShadowGDI()
919 if (SetDIBColorTable(pScreenPriv->hdcShadow, in winInstallColormapShadowGDI()
927 BitBlt(pScreenPriv->hdcScreen, in winInstallColormapShadowGDI()
930 pScreenPriv->hdcShadow, 0, 0, SRCCOPY); in winInstallColormapShadowGDI()
933 pScreenPriv->pcmapInstalled = pColormap; in winInstallColormapShadowGDI()
953 ColormapPtr curpmap = pScreenPriv->pcmapInstalled; in winStoreColorsShadowGDI()
977 RealizePalette(pScreenPriv->hdcScreen); in winStoreColorsShadowGDI()
980 if (SetDIBColorTable(pScreenPriv->hdcShadow, in winStoreColorsShadowGDI()
988 pScreenPriv->pcmapInstalled = pColormap; in winStoreColorsShadowGDI()
1078 SelectPalette(pScreenPriv->hdcScreen, in winDestroyColormapShadowGDI()
1082 pScreenPriv->pcmapInstalled = NULL; in winDestroyColormapShadowGDI()
1105 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winSetEngineFunctionsShadowGDI()
1108 pScreenPriv->pwinAllocateFB = winAllocateFBShadowGDI; in winSetEngineFunctionsShadowGDI()
1109 pScreenPriv->pwinFreeFB = winFreeFBShadowGDI; in winSetEngineFunctionsShadowGDI()
1110 pScreenPriv->pwinShadowUpdate = winShadowUpdateGDI; in winSetEngineFunctionsShadowGDI()
1111 pScreenPriv->pwinInitScreen = winInitScreenShadowGDI; in winSetEngineFunctionsShadowGDI()
1112 pScreenPriv->pwinCloseScreen = winCloseScreenShadowGDI; in winSetEngineFunctionsShadowGDI()
1113 pScreenPriv->pwinInitVisuals = winInitVisualsShadowGDI; in winSetEngineFunctionsShadowGDI()
1114 pScreenPriv->pwinAdjustVideoMode = winAdjustVideoModeShadowGDI; in winSetEngineFunctionsShadowGDI()
1116 pScreenPriv->pwinCreateBoundingWindow = in winSetEngineFunctionsShadowGDI()
1119 pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowWindowed; in winSetEngineFunctionsShadowGDI()
1120 pScreenPriv->pwinFinishScreenInit = winFinishScreenInitFB; in winSetEngineFunctionsShadowGDI()
1121 pScreenPriv->pwinBltExposedRegions = winBltExposedRegionsShadowGDI; in winSetEngineFunctionsShadowGDI()
1122 pScreenPriv->pwinActivateApp = winActivateAppShadowGDI; in winSetEngineFunctionsShadowGDI()
1123 pScreenPriv->pwinRedrawScreen = winRedrawScreenShadowGDI; in winSetEngineFunctionsShadowGDI()
1124 pScreenPriv->pwinRealizeInstalledPalette = in winSetEngineFunctionsShadowGDI()
1126 pScreenPriv->pwinInstallColormap = winInstallColormapShadowGDI; in winSetEngineFunctionsShadowGDI()
1127 pScreenPriv->pwinStoreColors = winStoreColorsShadowGDI; in winSetEngineFunctionsShadowGDI()
1128 pScreenPriv->pwinCreateColormap = winCreateColormapShadowGDI; in winSetEngineFunctionsShadowGDI()
1129 pScreenPriv->pwinDestroyColormap = winDestroyColormapShadowGDI; in winSetEngineFunctionsShadowGDI()
1130 pScreenPriv->pwinCreatePrimarySurface = NULL; in winSetEngineFunctionsShadowGDI()
1131 pScreenPriv->pwinReleasePrimarySurface = NULL; in winSetEngineFunctionsShadowGDI()