Lines Matching refs:pdm

185 static int VBoxDispInitDevice(PVBOXDISPDEV pDev, DEVMODEW *pdm, GDIINFO *pGdiInfo, DEVINFO *pDevInfo)
201 && (pdm->dmBitsPerPel==0)
202 && (pdm->dmPelsWidth==0)
203 && (pdm->dmPelsHeight==0)
204 && (pdm->dmDisplayFrequency==0))
213 if ((pdm->dmBitsPerPel == (pModesTable[i].BitsPerPlane * pModesTable[i].NumberOfPlanes))
214 && (pdm->dmPelsWidth == pModesTable[i].VisScreenWidth)
215 && (pdm->dmPelsHeight == pModesTable[i].VisScreenHeight)
216 && (pdm->dmDisplayFrequency == pModesTable[i].Frequency))
228 pdm->dmPelsWidth, pdm->dmPelsHeight, pdm->dmBitsPerPel, pdm->dmDisplayFrequency));
265 pGdiInfo->ulLogPixelsX = pdm->dmLogPixels;
266 pGdiInfo->ulLogPixelsY = pdm->dmLogPixels;
267 if (pdm->dmLogPixels!=96)
269 WARN(("requested logical pixel res %d isn't 96", pdm->dmLogPixels));
449 ULONG APIENTRY VBoxDispDrvGetModes(HANDLE hDriver, ULONG cjSize, DEVMODEW *pdm)
459 if (!pdm) /* return size of buffer required to store all supported modes */
468 for (mode=0; mode<cModes && mode<cMaxNodes; ++mode, ++pdm)
470 memset(pdm, 0, sizeof(DEVMODEW));
471 memcpy(pdm->dmDeviceName, VBOXDISP_DEVICE_NAME, sizeof(VBOXDISP_DEVICE_NAME));
473 pdm->dmSpecVersion = DM_SPECVERSION;
474 pdm->dmDriverVersion = DM_SPECVERSION;
475 pdm->dmSize = sizeof(DEVMODEW);
476 pdm->dmDriverExtra = 0;
478 pdm->dmBitsPerPel = pModesTable[mode].NumberOfPlanes*pModesTable[mode].BitsPerPlane;
479 pdm->dmPelsWidth = pModesTable[mode].VisScreenWidth;
480 pdm->dmPelsHeight = pModesTable[mode].VisScreenHeight;
481 pdm->dmDisplayFrequency = pModesTable[mode].Frequency;
482 pdm->dmDisplayFlags = 0;
483 pdm->dmFields = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT|DM_DISPLAYFREQUENCY|DM_DISPLAYFLAGS;
497 VBoxDispDrvEnablePDEV(DEVMODEW *pdm, LPWSTR pwszLogAddress, ULONG cPat, HSURF *phsurfPatterns,
532 rc = VBoxDispInitDevice(pDev, pdm, &gdiInfo, &devInfo);