Lines Matching refs:pScreenPriv

71   winScreenInfo		*pScreenInfo = pScreenPriv->pScreenInfo;  
81 GetClientRect (pScreenPriv->hwndScreen, &rcClient);
82 MapWindowPoints (pScreenPriv->hwndScreen,
87 ddrval = (*g_fpDirectDrawCreate) (NULL, &pScreenPriv->pdd, NULL);
92 ddrval = IDirectDraw_QueryInterface (pScreenPriv->pdd,
94 (LPVOID*) &pScreenPriv->pdd2);
109 ddrval = IDirectDraw2_SetCooperativeLevel (pScreenPriv->pdd2,
110 pScreenPriv->hwndScreen,
118 ddrval = IDirectDraw2_SetDisplayMode (pScreenPriv->pdd2,
131 ddrval = IDirectDraw2_SetCooperativeLevel (pScreenPriv->pdd2,
132 pScreenPriv->hwndScreen,
146 ddrval = IDirectDraw2_CreateSurface (pScreenPriv->pdd2,
148 &pScreenPriv->pddsPrimary,
157 pddsdPrimary = pScreenPriv->pddsdPrimary
182 ddrval = IDirectDraw2_CreateSurface (pScreenPriv->pdd2,
184 &pScreenPriv->pddsOffscreen,
193 pddsdOffscreen = pScreenPriv->pddsdOffscreen
204 ddrval = IDirectDrawSurface2_Lock (pScreenPriv->pddsPrimary,
227 pScreenPriv->dwRedMask = pddsdPrimary->ddpfPixelFormat.u2.dwRBitMask;
228 pScreenPriv->dwGreenMask = pddsdPrimary->ddpfPixelFormat.u3.dwGBitMask;
229 pScreenPriv->dwBlueMask = pddsdPrimary->ddpfPixelFormat.u4.dwBBitMask;
240 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
243 if (pScreenPriv->pddsOffscreen)
245 IDirectDrawSurface2_Unlock (pScreenPriv->pddsOffscreen, NULL);
246 IDirectDrawSurface2_Release (pScreenPriv->pddsOffscreen);
247 pScreenPriv->pddsOffscreen = NULL;
251 if (pScreenPriv->pddsPrimary)
253 IDirectDrawSurface2_Unlock (pScreenPriv->pddsPrimary, NULL);
254 IDirectDrawSurface2_Release (pScreenPriv->pddsPrimary);
255 pScreenPriv->pddsPrimary = NULL;
259 if (pScreenPriv->pdd)
261 IDirectDraw2_RestoreDisplayMode (pScreenPriv->pdd);
262 IDirectDraw2_Release (pScreenPriv->pdd);
263 pScreenPriv->pdd = NULL;
286 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
292 pScreenPriv->fClosed = TRUE;
293 pScreenPriv->fActive = FALSE;
300 RemoveProp (pScreenPriv->hwndScreen, WIN_SCR_PROP);
306 winDeleteNotifyIcon (pScreenPriv);
316 if (pScreenPriv->hwndScreen)
318 DestroyWindow (pScreenPriv->hwndScreen);
319 pScreenPriv->hwndScreen = NULL;
326 free ((pointer) pScreenPriv);
344 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
348 dwRedBits = winCountBits (pScreenPriv->dwRedMask);
349 dwGreenBits = winCountBits (pScreenPriv->dwGreenMask);
350 dwBlueBits = winCountBits (pScreenPriv->dwBlueMask);
354 pScreenPriv->dwBitsPerRGB = dwRedBits;
356 pScreenPriv->dwBitsPerRGB = dwGreenBits;
358 pScreenPriv->dwBitsPerRGB = dwBlueBits;
361 (unsigned int) pScreenPriv->dwRedMask,
362 (unsigned int) pScreenPriv->dwGreenMask,
363 (unsigned int) pScreenPriv->dwBlueMask,
364 (int) pScreenPriv->dwBitsPerRGB);
374 pScreenPriv->dwBitsPerRGB,
376 pScreenPriv->dwRedMask,
377 pScreenPriv->dwGreenMask,
378 pScreenPriv->dwBlueMask))
392 pScreenPriv->dwBitsPerRGB,
394 pScreenPriv->dwRedMask,
395 pScreenPriv->dwGreenMask,
396 pScreenPriv->dwBlueMask))
423 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
463 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
468 if (pScreenPriv == NULL
469 || pScreenPriv->pddsPrimary == NULL
470 || pScreenPriv->pddsOffscreen == NULL)
474 if (!pScreenPriv->fActive)
478 ddrval = IDirectDrawSurface2_IsLost (pScreenPriv->pddsOffscreen);
481 IDirectDrawSurface2_Unlock (pScreenPriv->pddsOffscreen,
490 IDirectDrawSurface2_Restore (pScreenPriv->pddsOffscreen);
491 IDirectDrawSurface2_Restore (pScreenPriv->pddsPrimary);
494 GetClientRect (pScreenPriv->hwndScreen, &rcClient);
495 MapWindowPoints (pScreenPriv->hwndScreen,
505 ddrval = IDirectDrawSurface2_Blt (pScreenPriv->pddsPrimary,
507 pScreenPriv->pddsOffscreen,
516 ddrval = IDirectDrawSurface2_Lock (pScreenPriv->pddsPrimary,
518 pScreenPriv->pddsdPrimary,
522 || pScreenPriv->pddsdPrimary->lpSurface == NULL)
528 pScreenPriv->pddsdPrimary->lpSurface);
534 RegisterHotKey (pScreenPriv->hwndScreen, 1, MOD_ALT, 9);
552 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
559 pScreenPriv->fActive = FALSE;
562 if (pScreenPriv->pddsPrimary == NULL
563 || pScreenPriv->pddsOffscreen == NULL)
567 GetClientRect (pScreenPriv->hwndScreen, &rcClient);
568 MapWindowPoints (pScreenPriv->hwndScreen,
573 ddrval = IDirectDrawSurface2_IsLost (pScreenPriv->pddsPrimary);
576 ddrval = IDirectDrawSurface2_Unlock (pScreenPriv->pddsPrimary,
590 ddrval = IDirectDrawSurface2_Blt (pScreenPriv->pddsOffscreen,
592 pScreenPriv->pddsPrimary,
598 IDirectDrawSurface2_Restore (pScreenPriv->pddsOffscreen);
599 IDirectDrawSurface2_Restore (pScreenPriv->pddsPrimary);
602 ddrval = IDirectDrawSurface2_Blt (pScreenPriv->pddsOffscreen,
604 pScreenPriv->pddsPrimary,
620 ddrval = IDirectDrawSurface2_Lock (pScreenPriv->pddsOffscreen,
622 pScreenPriv->pddsdOffscreen,
626 || pScreenPriv->pddsdPrimary->lpSurface == NULL)
632 pScreenPriv->pddsdOffscreen->lpSurface);
635 UnregisterHotKey (pScreenPriv->hwndScreen, 1);
646 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
649 pScreenPriv->pwinAllocateFB = winAllocateFBPrimaryDD;
650 pScreenPriv->pwinFreeFB = winFreeFBPrimaryDD;
651 pScreenPriv->pwinShadowUpdate = (winShadowUpdateProcPtr) (void (*)(void))NoopDDA;
652 pScreenPriv->pwinInitScreen = winInitScreenPrimaryDD;
653 pScreenPriv->pwinCloseScreen = winCloseScreenPrimaryDD;
654 pScreenPriv->pwinInitVisuals = winInitVisualsPrimaryDD;
655 pScreenPriv->pwinAdjustVideoMode = winAdjustVideoModePrimaryDD;
657 pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowFullScreen;
659 pScreenPriv->pwinCreateBoundingWindow = winCreateBoundingWindowWindowed;
660 pScreenPriv->pwinFinishScreenInit = winFinishScreenInitFB;
661 pScreenPriv->pwinBltExposedRegions = (winBltExposedRegionsProcPtr) (void (*)(void))NoopDDA;
662 pScreenPriv->pwinActivateApp = winActivateAppPrimaryDD;
663 pScreenPriv->pwinRedrawScreen = NULL;
664 pScreenPriv->pwinRealizeInstalledPalette = NULL;
665 pScreenPriv->pwinInstallColormap = NULL;
666 pScreenPriv->pwinStoreColors = NULL;
667 pScreenPriv->pwinCreateColormap = NULL;
668 pScreenPriv->pwinDestroyColormap = NULL;
669 pScreenPriv->pwinHotKeyAltTab = winHotKeyAltTabPrimaryDD;
670 pScreenPriv->pwinCreatePrimarySurface = (winCreatePrimarySurfaceProcPtr) (void (*)(void))NoopDDA;
671 pScreenPriv->pwinReleasePrimarySurface = (winReleasePrimarySurfaceProcPtr) (void (*)(void))NoopDDA;
673 pScreenPriv->pwinFinishCreateWindowsWindow =