VirtualBox

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


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

FE/Qt: 3635: Scaling mode support: Machine-window resize/rescale finally works for 2D Video Acceleration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.h

    r54100 r54105  
    13501350        mUsesGuestVram(true) {}
    13511351
    1352     VBoxFBSizeInfo(ulong aPixelFormat, uchar *aVRAM,
     1352    VBoxFBSizeInfo(UIVisualStateType visualState,
     1353                   ulong aPixelFormat, uchar *aVRAM,
    13531354                   ulong aBitsPerPixel, ulong aBytesPerLine,
    13541355                   ulong aWidth, ulong aHeight,
     1356                   double dScaleFactor, const QSize &scaledSize, bool fUseUnscaledHiDPIOutput,
    13551357                   bool bUsesGuestVram) :
    1356         m_visualState(UIVisualStateType_Invalid),
     1358        m_visualState(visualState),
    13571359        mPixelFormat(aPixelFormat), mVRAM(aVRAM), mBitsPerPixel(aBitsPerPixel),
    13581360        mBytesPerLine(aBytesPerLine), mWidth(aWidth), mHeight(aHeight),
    1359         m_dScaleFactor(1.0), m_scaledSize(QSize()), m_fUseUnscaledHiDPIOutput(false),
     1361        m_dScaleFactor(dScaleFactor), m_scaledSize(scaledSize), m_fUseUnscaledHiDPIOutput(fUseUnscaledHiDPIOutput),
    13601362        mUsesGuestVram(bUsesGuestVram) {}
    13611363
     
    19131915    }
    19141916
     1917    void performRescale()
     1918    {
     1919        UIFrameBuffer::performRescale();
     1920        mOverlay.onResizeEventPostprocess(VBoxFBSizeInfo(this),
     1921                QPoint(mpView->contentsX(), mpView->contentsY()));
     1922    }
     1923
    19151924    void viewportResized (QResizeEvent * re)
    19161925    {
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