VirtualBox

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


Ignore:
Timestamp:
Feb 6, 2015 6:22:59 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98074
Message:

FE/Qt: 3635: Scaling mode support: 2D Video Acceleration: Pass actual visual-state-type instead of stale one.

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

Legend:

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

    r54100 r54103  
    5656
    5757UIFrameBuffer::UIFrameBuffer()
    58     : m_visualState(UIVisualStateType_Invalid)
    59     , m_iWidth(0), m_iHeight(0)
     58    : m_iWidth(0), m_iHeight(0)
    6059    , m_pMachineView(NULL)
    6160    , m_iWinId(0)
     
    7675    LogRel2(("UIFrameBuffer::init %p\n", this));
    7776
    78     /* Fetch visual-state: */
    79     m_visualState = pMachineView->visualStateType();
    80 
    8177    /* Assign mahine-view: */
    8278    m_pMachineView = pMachineView;
     
    150146    m_fUnused = fUnused;
    151147    unlock();
     148}
     149
     150UIVisualStateType UIFrameBuffer::visualState() const
     151{
     152    return m_pMachineView ? m_pMachineView->visualStateType() : UIVisualStateType_Invalid;
    152153}
    153154
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r54100 r54103  
    7777    void setMarkAsUnused(bool fUnused);
    7878
    79     /** Returns the visual-state this frame-buffer created for. */
    80     UIVisualStateType visualState() const { return m_visualState; }
     79    /** Returns the visual-state this frame-buffer is used for. */
     80    UIVisualStateType visualState() const;
    8181
    8282    /** Returns whether frame-buffer is <b>auto-enabled</b>.
     
    264264                              HiDPIOptimizationType hiDPIOptimizationType,
    265265                              double dBackingScaleFactor);
    266 
    267     /** Holds the visual-state this frame-buffer created for. */
    268     UIVisualStateType m_visualState;
    269266
    270267    /** Holds the QImage buffer. */
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