VirtualBox

Ignore:
Timestamp:
Mar 2, 2015 6:25:30 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6227: Step-by-step reworking frame-buffer to move COM implementation into more specific part (step 02).

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

Legend:

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

    r54587 r54588  
    5656
    5757UIFrameBuffer::UIFrameBuffer()
    58     : m_iWidth(0), m_iHeight(0)
     58    : m_uScreenId(0)
     59    , m_iWidth(0), m_iHeight(0)
    5960    , m_fPendingSourceBitmap(false)
    6061    , m_pMachineView(NULL)
     
    7879    /* Assign mahine-view: */
    7980    m_pMachineView = pMachineView;
     81
     82    /* Assign index: */
     83    m_uScreenId = m_pMachineView->screenId();
     84
    8085    /* Cache window ID: */
    8186    m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0;
     
    733738        LONG yOrigin = 0;
    734739        KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled;
    735         display().GetScreenResolution(m_pMachineView->screenId(),
    736                                       ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
     740        display().GetScreenResolution(m_uScreenId, ulWidth, ulHeight, ulGuestBitsPerPixel, xOrigin, yOrigin, monitorStatus);
    737741
    738742        /* Remind user if necessary, ignore text and VGA modes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r54587 r54588  
    269269                              HiDPIOptimizationType hiDPIOptimizationType,
    270270                              double dBackingScaleFactor);
     271
     272    /** Holds the screen-id. */
     273    ulong m_uScreenId;
    271274
    272275    /** Holds the QImage buffer. */
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