VirtualBox

Changeset 53898 in vbox


Ignore:
Timestamp:
Jan 21, 2015 12:32:22 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97747
Message:

FE/Qt: 3635: Scaling mode support: Do not apply normal scale-factor to scaled-mode.

File:
1 edited

Legend:

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

    r53861 r53898  
    479479    }
    480480    /* Tune according scale-factor: */
    481     if (m_dScaleFactor != 1.0 || backingScaleFactor() > 1.0)
     481    if (scaleFactor() != 1.0 || backingScaleFactor() > 1.0)
    482482        region = m_transform.map(region);
    483483
     
    696696    unlock();
    697697
    698     /* Update scaled-size according scale-factor: */
    699     setScaledSize(scaleFactor() == 1.0 ? scaledSize() : QSize(m_iWidth * scaleFactor(), m_iHeight * scaleFactor()));
     698    /* Update scaled-size according scale-factor for modes except the 'Scale' one: */
     699    if (m_pMachineView->machineLogic()->visualStateType() != UIVisualStateType_Scale)
     700        setScaledSize(scaleFactor() == 1.0 ? QSize() : QSize(m_iWidth * scaleFactor(), m_iHeight * scaleFactor()));
    700701}
    701702
     
    835836
    836837    /* Apply the scale-factor if necessary: */
    837     if (m_dScaleFactor != 1.0)
    838         m_transform = m_transform.scale(m_dScaleFactor, m_dScaleFactor);
     838    if (scaleFactor() != 1.0)
     839        m_transform = m_transform.scale(scaleFactor(), scaleFactor());
    839840
    840841    /* Apply the backing-scale-factor if necessary: */
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