Lines Matching defs:xres

36 VBoxMPValidateVideoModeParamsGuest(PVBOXMP_DEVEXT pExt, uint32_t iDisplay, uint32_t xres, uint32_t yres, uint32_t bpp)
82 VBoxFillVidModeInfo(VIDEO_MODE_INFORMATION *pMode, ULONG xres, ULONG yres, ULONG bpp, ULONG index, ULONG yoffset)
84 LOGF(("%dx%d:%d (idx=%d, yoffset=%d)", xres, yres, bpp, index, yoffset));
91 pMode->VisScreenWidth = xres;
93 pMode->ScreenStride = xres * ((bpp + 7) / 8);
99 pMode->VideoMemoryBitmapWidth = xres;
409 uint32_t xres, yres, bpp = 0;
412 rc = VBoxMPCmnRegQueryDword(Registry, keyname, &xres);
423 LOG(("got custom mode[%u]=%ux%u:%u", curKey, xres, yres, bpp));
428 xres &= 0xFFF8;
431 if ( (xres > (1 << 16))
442 if (xres * yres * (bpp / 8) > vramSize)
448 if (!VBoxLikesVideoMode(iDisplay, xres, yres, bpp))
454 if (!VBoxMPValidateVideoModeParamsGuest(pExt, iDisplay, xres, yres, bpp))
462 VBoxFillVidModeInfo(&pModesTable[iMode], xres, yres, bpp, iMode+1, yOffset);
543 VBoxMPValidateVideoModeParams(PVBOXMP_DEVEXT pExt, uint32_t iDisplay, uint32_t &xres, uint32_t &yres, uint32_t &bpp)
549 xres = xres ? xres:g_CustomVideoModes[iDisplay].VisScreenWidth;
557 xres = xres ? xres:pExt->CurrentModeWidth;
564 xres = xres ? xres:pAllocData->SurfDesc.width;
580 xres &= 0xFFF8;
589 if (!VBoxMPValidateVideoModeParamsGuest(pExt, iDisplay, xres, yres, bpp))
591 WARN(("GUEST does not like special mode %dx%d:%d for display %d", xres, yres, bpp, iDisplay));
596 if (!VBoxLikesVideoMode(iDisplay, xres, yres, bpp))
598 WARN_NOBP(("HOST does not like special mode %dx%d:%d for display %d", xres, yres, bpp, iDisplay));
618 if (!xres || !yres
626 LOG(("invalid params for special mode %dx%d:%d", xres, yres, bpp));
632 if ((xres * yres * (bpp / 8) >= vramSize))
638 xres, yres, bpp, vramSize, xres * yres * (bpp / 8)));
640 s_xresNoVRAM = xres;
657 uint32_t xres=0, yres=0, bpp=0, display=0;
660 if (VBoxQueryDisplayRequest(&xres, &yres, &bpp, &display) && (xres || yres || bpp))
676 if (VBoxMPValidateVideoModeParams(pExt, display, xres, yres, bpp))
678 VBoxFillVidModeInfo(pPendingMode, xres, yres, bpp, display, 0);
785 uint32_t xres=0, yres=0, bpp=0;
788 if (VBoxMPValidateVideoModeParams(pExt, pExt->iDevice, xres, yres, bpp))
790 LOG(("Startup for screen %d validated %dx%d %d", pExt->iDevice, xres, yres, bpp));
791 VBoxFillVidModeInfo(&specialMode, xres, yres, bpp, 0, 0);