Lines Matching refs:pScreenPriv

102     hbmp = CreateCompatibleBitmap(pScreenPriv->hdcScreen, 1, 1);
113 if (!GetDIBits(pScreenPriv->hdcScreen,
129 if (!GetDIBits(pScreenPriv->hdcScreen,
158 if (GetDeviceCaps(pScreenPriv->hdcScreen, RASTERCAPS) & RC_PALETTE) {
163 pScreenPriv->dwBitsPerRGB = 8;
164 pScreenPriv->dwRedMask = 0x0L;
165 pScreenPriv->dwGreenMask = 0x0L;
166 pScreenPriv->dwBlueMask = 0x0L;
171 if (GetDeviceCaps(pScreenPriv->hdcScreen, PLANES)
172 * GetDeviceCaps(pScreenPriv->hdcScreen, BITSPIXEL) == 24) {
177 pScreenPriv->dwBitsPerRGB = 8;
180 pScreenPriv->dwRedMask = WIN_24BPP_MASK_RED;
181 pScreenPriv->dwGreenMask = WIN_24BPP_MASK_GREEN;
182 pScreenPriv->dwBlueMask = WIN_24BPP_MASK_BLUE;
229 pScreenPriv->dwBitsPerRGB = 5;
232 pScreenPriv->dwRedMask = 0x7c00;
233 pScreenPriv->dwGreenMask = 0x03e0;
234 pScreenPriv->dwBlueMask = 0x001f;
244 pScreenPriv->dwBitsPerRGB = dwRedBits;
246 pScreenPriv->dwBitsPerRGB = dwGreenBits;
248 pScreenPriv->dwBitsPerRGB = dwBlueBits;
251 pScreenPriv->dwRedMask = pdw[0];
252 pScreenPriv->dwGreenMask = pdw[1];
253 pScreenPriv->dwBlueMask = pdw[2];
321 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
326 pScreenPriv->pbmih->biWidth = pScreenInfo->dwWidth;
327 pScreenPriv->pbmih->biHeight = -pScreenInfo->dwHeight;
331 (int) pScreenPriv->pbmih->biWidth,
332 (int) -pScreenPriv->pbmih->biHeight, pScreenPriv->pbmih->biBitCount);
335 pScreenPriv->hbmpShadow = CreateDIBSection(pScreenPriv->hdcScreen,
336 (BITMAPINFO *) pScreenPriv->
340 if (pScreenPriv->hbmpShadow == NULL || pScreenInfo->pfb == NULL) {
351 GetObject(pScreenPriv->hbmpShadow, sizeof(dibsection), &dibsection);
362 SelectObject(pScreenPriv->hdcShadow, pScreenPriv->hbmpShadow);
369 fReturn = BitBlt(pScreenPriv->hdcScreen,
372 pScreenPriv->hdcShadow, 0, 0, SRCCOPY);
416 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
419 DeleteObject(pScreenPriv->hbmpShadow);
433 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
451 if ((!pScreenPriv->fActive && pScreenInfo->fFullScreen)
452 || pScreenPriv->fBadDepth)
491 BitBlt(pScreenPriv->hdcScreen,
492 x, y, w, h, pScreenPriv->hdcShadow, x, y, SRCCOPY);
506 SelectClipRgn(pScreenPriv->hdcScreen, hrgnCombined);
514 BitBlt(pScreenPriv->hdcScreen,
518 pScreenPriv->hdcShadow,
522 SelectClipRgn(pScreenPriv->hdcScreen, NULL);
538 pScreenPriv->hdcScreen = GetDC(pScreenPriv->hwndScreen);
539 pScreenPriv->hdcShadow = CreateCompatibleDC(pScreenPriv->hdcScreen);
542 pScreenPriv->pbmih = malloc(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD));
543 if (pScreenPriv->pbmih == NULL) {
549 if (!winQueryScreenDIBFormat(pScreen, pScreenPriv->pbmih)) {
573 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
581 pScreenPriv->fClosed = TRUE;
582 pScreenPriv->fActive = FALSE;
590 RemoveProp(pScreenPriv->hwndScreen, WIN_SCR_PROP);
593 DeleteDC(pScreenPriv->hdcShadow);
598 ReleaseDC(pScreenPriv->hwndScreen, pScreenPriv->hdcScreen);
602 winDeleteNotifyIcon(pScreenPriv);
611 if (pScreenPriv->hwndScreen) {
612 DestroyWindow(pScreenPriv->hwndScreen);
613 pScreenPriv->hwndScreen = NULL;
617 pthread_mutex_destroy(&pScreenPriv->pmServerStarted);
623 free((void *) pScreenPriv);
640 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
645 (unsigned int) pScreenPriv->dwRedMask,
646 (unsigned int) pScreenPriv->dwGreenMask,
647 (unsigned int) pScreenPriv->dwBlueMask,
648 (int) pScreenPriv->dwBitsPerRGB,
659 pScreenPriv->dwBitsPerRGB,
661 pScreenPriv->dwRedMask,
662 pScreenPriv->dwGreenMask,
663 pScreenPriv->dwBlueMask)) {
685 pScreenPriv->dwBitsPerRGB,
687 pScreenPriv->dwRedMask,
688 pScreenPriv->dwGreenMask,
689 pScreenPriv->dwBlueMask)) {
716 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
749 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
755 hdcUpdate = BeginPaint(pScreenPriv->hwndScreen, &ps);
759 EndPaint(pScreenPriv->hwndScreen, &ps);
764 if (pScreenPriv->pcmapInstalled != NULL) {
765 pCmapPriv = winGetCmapPriv(pScreenPriv->pcmapInstalled);
776 pScreenPriv->hdcShadow,
797 EndPaint(pScreenPriv->hwndScreen, &ps);
802 (LPARAM) pScreenPriv->hwndScreen);
852 hdcPixmap = CreateCompatibleDC(pScreenPriv->hdcScreen);
878 pScreenPriv->hdcShadow,
937 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
954 if (pScreenPriv->fActive && pScreenInfo->fFullScreen) {
959 ShowWindow(pScreenPriv->hwndScreen, SW_RESTORE);
961 else if (!pScreenPriv->fActive && pScreenInfo->fFullScreen) {
966 ShowWindow(pScreenPriv->hwndScreen, SW_MINIMIZE);
980 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
983 BitBlt(pScreenPriv->hdcScreen,
986 pScreenPriv->hdcShadow, 0, 0, SRCCOPY);
1010 if (pScreenPriv->pcmapInstalled == NULL) {
1018 pCmapPriv = winGetCmapPriv(pScreenPriv->pcmapInstalled);
1021 if (RealizePalette(pScreenPriv->hdcScreen) == GDI_ERROR) {
1028 if (SetDIBColorTable(pScreenPriv->hdcShadow,
1049 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
1056 if (SelectPalette(pScreenPriv->hdcScreen,
1063 if (GDI_ERROR == RealizePalette(pScreenPriv->hdcScreen)) {
1069 if (SetDIBColorTable(pScreenPriv->hdcShadow,
1077 BitBlt(pScreenPriv->hdcScreen,
1080 pScreenPriv->hdcShadow, 0, 0, SRCCOPY);
1083 pScreenPriv->pcmapInstalled = pColormap;
1103 ColormapPtr curpmap = pScreenPriv->pcmapInstalled;
1127 RealizePalette(pScreenPriv->hdcScreen);
1130 if (SetDIBColorTable(pScreenPriv->hdcShadow,
1138 pScreenPriv->pcmapInstalled = pColormap;
1228 SelectPalette(pScreenPriv->hdcScreen,
1232 pScreenPriv->pcmapInstalled = NULL;
1255 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
1258 pScreenPriv->pwinAllocateFB = winAllocateFBShadowGDI;
1259 pScreenPriv->pwinFreeFB = winFreeFBShadowGDI;
1260 pScreenPriv->pwinShadowUpdate = winShadowUpdateGDI;
1261 pScreenPriv->pwinInitScreen = winInitScreenShadowGDI;
1262 pScreenPriv->pwinCloseScreen = winCloseScreenShadowGDI;
1263 pScreenPriv->pwinInitVisuals = winInitVisualsShadowGDI;
1264 pScreenPriv->pwinAdjustVideoMode = winAdjustVideoModeShadowGDI;
1266 pScreenPriv->pwinCreateBoundingWindow =
1269 pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowWindowed;
1270 pScreenPriv->pwinFinishScreenInit = winFinishScreenInitFB;
1271 pScreenPriv->pwinBltExposedRegions = winBltExposedRegionsShadowGDI;
1272 pScreenPriv->pwinBltExposedWindowRegion = winBltExposedWindowRegionShadowGDI;
1273 pScreenPriv->pwinActivateApp = winActivateAppShadowGDI;
1274 pScreenPriv->pwinRedrawScreen = winRedrawScreenShadowGDI;
1275 pScreenPriv->pwinRealizeInstalledPalette =
1277 pScreenPriv->pwinInstallColormap = winInstallColormapShadowGDI;
1278 pScreenPriv->pwinStoreColors = winStoreColorsShadowGDI;
1279 pScreenPriv->pwinCreateColormap = winCreateColormapShadowGDI;
1280 pScreenPriv->pwinDestroyColormap = winDestroyColormapShadowGDI;
1281 pScreenPriv->pwinCreatePrimarySurface = NULL;
1282 pScreenPriv->pwinReleasePrimarySurface = NULL;