VirtualBox

Changeset 54566 in vbox for trunk/src


Ignore:
Timestamp:
Feb 27, 2015 8:30:57 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: UIFramebuffer: no special NULL value for pending source bitmap.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r54178 r54566  
    5757UIFrameBuffer::UIFrameBuffer()
    5858    : m_iWidth(0), m_iHeight(0)
     59    , m_fPendingSourceBitmap(false)
    5960    , m_pMachineView(NULL)
    6061    , m_iWinId(0)
     
    277278       /* Acquire new pending bitmap: */
    278279       m_pendingSourceBitmap = sourceBitmap;
     280       m_fPendingSourceBitmap = true;
    279281    }
    280282
     
    587589
    588590    /* If there is NO pending source-bitmap: */
    589     if (!vboxGlobal().isSeparateProcess() && m_pendingSourceBitmap.isNull())
     591    if (!vboxGlobal().isSeparateProcess() && !m_fPendingSourceBitmap)
    590592    {
    591593        /* Do nothing, change-event already processed: */
     
    600602    m_sourceBitmap = m_pendingSourceBitmap;
    601603    m_pendingSourceBitmap = 0;
     604    m_fPendingSourceBitmap = false;
    602605
    603606    /* Unlock access to frame-buffer: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r54178 r54566  
    284284    /** Source bitmap from IDisplay (acquired but not yet applied). */
    285285    CDisplaySourceBitmap m_pendingSourceBitmap;
     286    /** There is a pending source bitmap which must be applied. */
     287    bool m_fPendingSourceBitmap;
    286288
    287289    /** Holds machine-view this frame-buffer is bounded to. */
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