VirtualBox

Changeset 52117 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jul 21, 2014 8:12:17 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95142
Message:

DisplayImpl: IDisplay::InvalidateAndUpdateScreen

File:
1 edited

Legend:

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

    r52064 r52117  
    33353335        rc = setError(VBOX_E_IPRT_ERROR,
    33363336                      tr("Could not invalidate and update the screen (%Rrc)"), rcVBox);
     3337
     3338    LogRelFlowFunc(("rc=%Rhrc\n", rc));
     3339    return rc;
     3340}
     3341
     3342HRESULT Display::invalidateAndUpdateScreen(ULONG aScreenId)
     3343{
     3344    LogRelFlowFunc(("\n"));
     3345
     3346    HRESULT rc = S_OK;
     3347
     3348    Console::SafeVMPtr ptrVM(mParent);
     3349    if (!ptrVM.isOk())
     3350        return ptrVM.rc();
     3351
     3352    /* pdm.h says that this has to be called from the EMT thread */
     3353    int rcVBox = VMR3ReqCallVoidWaitU(ptrVM.rawUVM(), VMCPUID_ANY, (PFNRT)Display::i_InvalidateAndUpdateEMT,
     3354                                      3, this, aScreenId, false);
     3355    if (RT_FAILURE(rcVBox))
     3356        rc = setError(VBOX_E_IPRT_ERROR,
     3357                      tr("Could not invalidate and update the screen %d (%Rrc)"), aScreenId, rcVBox);
    33373358
    33383359    LogRelFlowFunc(("rc=%Rhrc\n", rc));
Note: See TracChangeset for help on using the changeset viewer.

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