VirtualBox

Changeset 51984 in vbox for trunk


Ignore:
Timestamp:
Jul 11, 2014 10:51:20 AM (11 years ago)
Author:
vboxsync
Message:

Main: fix mode switch issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r51836 r51984  
    23962396
    23972397    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) */
    23982423
    23992424    return S_OK;
     
    36493674    pData->aParms[4].u.uint32 = height;
    36503675
    3651     return crCtlSubmitSyncIfHasDataForScreen(aScreenId, &pData->Hdr, cbData);
     3676    return crCtlSubmitSyncIfHasDataForScreen(aScreenId, &pData->Hdr, (uint32_t)cbData);
    36523677}
    36533678#endif
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