VirtualBox

Changeset 59639 in vbox


Ignore:
Timestamp:
Feb 11, 2016 5:58:54 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105489
Message:

FE/Qt: Qt5 migration (part 86): Mac OS X: Runtime UI: Frame-buffer: Replace translucent background with black one.

File:
1 edited

Legend:

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

    r58882 r59639  
    13821382    QPainter painter(m_pMachineView->viewport());
    13831383
     1384#ifdef Q_WS_MAC
     1385# if QT_VERSION >= 0x050000
     1386    /* Replace translucent background with black one: */
     1387    painter.setCompositionMode(QPainter::CompositionMode_Source);
     1388    painter.fillRect(paintRect, QColor(Qt::black));
     1389    painter.setCompositionMode(QPainter::CompositionMode_SourceAtop);
     1390# endif /* QT_VERSION >= 0x050000 */
     1391#endif /* Q_WS_MAC */
     1392
    13841393    /* Draw image rectangle: */
    13851394    drawImageRect(painter, sourceImage, paintRect,
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