- Timestamp:
- Jul 11, 2014 10:51:20 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r51836 r51984 2396 2396 2397 2397 pFBInfo->pFramebuffer.setNull(); 2398 2399 alock.release(); 2400 2401 #if defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL) 2402 Console::SafeVMPtrQuiet ptrVM(mParent); 2403 if (ptrVM.isOk()) 2404 { 2405 BOOL fIs3DEnabled = FALSE; 2406 mParent->i_machine()->COMGETTER(Accelerate3DEnabled)(&fIs3DEnabled); 2407 2408 if (fIs3DEnabled) 2409 { 2410 VBOXCRCMDCTL_HGCM data; 2411 RT_ZERO(data); 2412 data.Hdr.enmType = VBOXCRCMDCTL_TYPE_HGCM; 2413 data.Hdr.u32Function = SHCRGL_HOST_FN_SCREEN_CHANGED; 2414 2415 data.aParms[0].type = VBOX_HGCM_SVC_PARM_32BIT; 2416 data.aParms[0].u.uint32 = aScreenId; 2417 2418 int vrc = crCtlSubmitSync(&data.Hdr, sizeof(data)); 2419 AssertRC(vrc); 2420 } 2421 } 2422 #endif /* defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL) */ 2398 2423 2399 2424 return S_OK; … … 3649 3674 pData->aParms[4].u.uint32 = height; 3650 3675 3651 return crCtlSubmitSyncIfHasDataForScreen(aScreenId, &pData->Hdr, cbData);3676 return crCtlSubmitSyncIfHasDataForScreen(aScreenId, &pData->Hdr, (uint32_t)cbData); 3652 3677 } 3653 3678 #endif
Note:
See TracChangeset
for help on using the changeset viewer.