Changeset 22189 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 11, 2009 7:28:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r22136 r22189 878 878 { 879 879 VBOXVHWACMD* pCmd = vboxVHWACommandCreate (ppdev, VBOXVHWACMD_TYPE_QUERY_INFO1, sizeof(VBOXVHWACMD_QUERYINFO1)); 880 VBOXVHWACMD_QUERYINFO1 *pInfo1; 880 881 if (!pCmd) 881 882 { … … 883 884 return NULL; 884 885 } 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; 885 898 886 899 if(vboxVHWACommandSubmit (ppdev, pCmd)) … … 933 946 } 934 947 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); 943 956 vboxVHWAFreeHostInfo1(ppdev, pInfo); 944 957 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.