VirtualBox

Ignore:
Timestamp:
Oct 19, 2023 12:46:22 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159583
Message:

FE/Qt: bugref:10535: HiDPI support for stuff added in r159580.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp

    r101508 r101509  
    767767#if 1
    768768    QFont font = qApp->font();
    769     /* Set font' size wrt. @p pixmap height: */
    770     font.setPixelSize(0.31 * pixmap.rect().height());
     769    /* Set font' size wrt. @p pixmap height/dpr: */
     770    font.setPixelSize(0.31 * pixmap.height() / pixmap.devicePixelRatio());
    771771    font.setBold(true);
    772772    QPainter painter(&pixmap);
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