VirtualBox

Changeset 51657 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 18, 2014 9:52:51 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: get the source bitmap before taking UIFrameBuffer lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r51642 r51657  
    176176STDMETHODIMP UIFrameBuffer::NotifyChange(ULONG uScreenId, ULONG uX, ULONG uY, ULONG uWidth, ULONG uHeight)
    177177{
     178    CDisplaySourceBitmap sourceBitmap;
     179    m_pMachineView->session().GetConsole().GetDisplay().QuerySourceBitmap(uScreenId, sourceBitmap);
     180
    178181    /* Lock access to frame-buffer: */
    179182    lock();
     
    201204
    202205    /* Acquire new pending bitmap: */
    203     m_pendingSourceBitmap = 0;
    204     m_pMachineView->session().GetConsole().GetDisplay().QuerySourceBitmap(uScreenId, m_pendingSourceBitmap);
     206    m_pendingSourceBitmap = sourceBitmap;
    205207
    206208    /* Widget resize is NOT thread-safe and *probably* never will be,
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