VirtualBox

Changeset 88474 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2021 5:30:48 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. dont resize the images larger than 1:1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp

    r88465 r88474  
    642642        if (m_fOverlayMode)
    643643        {
    644             QSize size(0.8 * width(), 0.8 * height());
     644            QSize size(qMin((int)(0.9 * width()), m_overlayPixmap.width()),
     645                        qMin((int)(0.9 * height()), height()));
    645646            m_pOverlayLabel->setPixmap(m_overlayPixmap.scaled(size,  Qt::KeepAspectRatio, Qt::SmoothTransformation));
    646647            int x = 0.5 * (width() - m_pOverlayLabel->width());
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