VirtualBox

Changeset 22189 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 11, 2009 7:28:42 PM (15 years ago)
Author:
vboxsync
Message:

video hw accel: propper report supported functionality, some code cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c

    r22136 r22189  
    878878{
    879879    VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_QUERY_INFO1, sizeof(VBOXVHWACMD_QUERYINFO1));
     880    VBOXVHWACMD_QUERYINFO1 *pInfo1;
    880881    if (!pCmd)
    881882    {
     
    883884        return NULL;
    884885    }
     886
     887    if (!pCmd)
     888    {
     889        DISPDBG((0, "VBoxDISP::vboxVHWAQueryHostInfo1: vboxVHWACommandCreate failed\n"));
     890        return NULL;
     891    }
     892
     893    pInfo1 = VBOXVHWACMD_BODY(pCmd, VBOXVHWACMD_QUERYINFO1);
     894    pInfo1->u.in.guestVersion.maj = VBOXVHWA_VERSION_MAJ;
     895    pInfo1->u.in.guestVersion.min = VBOXVHWA_VERSION_MIN;
     896    pInfo1->u.in.guestVersion.bld = VBOXVHWA_VERSION_BLD;
     897    pInfo1->u.in.guestVersion.reserved = VBOXVHWA_VERSION_RSV;
    885898
    886899    if(vboxVHWACommandSubmit (ppdev, pCmd))
     
    933946    }
    934947
    935     ppdev->vhwaInfo.caps = pInfo->caps;
    936     ppdev->vhwaInfo.caps2 = pInfo->caps2;
    937     ppdev->vhwaInfo.colorKeyCaps = pInfo->colorKeyCaps;
    938     ppdev->vhwaInfo.stretchCaps = pInfo->stretchCaps;
    939     ppdev->vhwaInfo.surfaceCaps = pInfo->surfaceCaps;
    940     ppdev->vhwaInfo.numOverlays = pInfo->numOverlays;
    941     ppdev->vhwaInfo.numFourCC = pInfo->numFourCC;
    942     ppdev->vhwaInfo.bVHWAEnabled = (pInfo->cfgFlags & VBOXVHWA_CFG_ENABLED);
     948    ppdev->vhwaInfo.caps = pInfo->u.out.caps;
     949    ppdev->vhwaInfo.caps2 = pInfo->u.out.caps2;
     950    ppdev->vhwaInfo.colorKeyCaps = pInfo->u.out.colorKeyCaps;
     951    ppdev->vhwaInfo.stretchCaps = pInfo->u.out.stretchCaps;
     952    ppdev->vhwaInfo.surfaceCaps = pInfo->u.out.surfaceCaps;
     953    ppdev->vhwaInfo.numOverlays = pInfo->u.out.numOverlays;
     954    ppdev->vhwaInfo.numFourCC = pInfo->u.out.numFourCC;
     955    ppdev->vhwaInfo.bVHWAEnabled = (pInfo->u.out.cfgFlags & VBOXVHWA_CFG_ENABLED);
    943956    vboxVHWAFreeHostInfo1(ppdev, pInfo);
    944957    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette