Changeset 22189 in vbox for trunk/src/VBox
- Timestamp:
- Aug 11, 2009 7:28:42 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50975
- Location:
- trunk/src/VBox
- Files:
-
- 4 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; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h
r22136 r22189 1387 1387 #ifdef VBOX_WITH_VIDEOHWACCEL 1388 1388 STDMETHOD(ProcessVHWACommand)(BYTE *pCommand); 1389 1390 1391 static bool isAcceleration2DVideoAvailable(); 1389 1392 #endif 1390 1393 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r22173 r22189 749 749 750 750 #ifdef VBOX_WITH_VIDEOHWACCEL 751 static bool isAcceleration2DVideoAvailable() { /* TODO: */ return true; }751 static bool isAcceleration2DVideoAvailable(); 752 752 VBoxDefs::RenderMode vmAcceleration2DVideoRenderMode() { return VBoxDefs::QGLMode; } 753 753 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r22173 r22189 36 36 #endif 37 37 #include "VBoxUpdateDlg.h" 38 39 #ifdef VBOX_WITH_VIDEOHWACCEL 40 #include "VBoxFrameBuffer.h" 41 #endif 38 42 39 43 /* Qt includes */ … … 4065 4069 } 4066 4070 } 4071 4072 #ifdef VBOX_WITH_VIDEOHWACCEL 4073 /* static */ 4074 bool VBoxGlobal::isAcceleration2DVideoAvailable() 4075 { 4076 return VBoxQGLFrameBuffer::isAcceleration2DVideoAvailable(); 4077 } 4078 #endif 4067 4079 4068 4080 // Public slots
Note:
See TracChangeset
for help on using the changeset viewer.