VirtualBox

Changeset 108392 in vbox


Ignore:
Timestamp:
Feb 26, 2025 2:16:46 PM (8 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167756
Message:

FE/Qt: bugref:10450: Runtime UI: Fixing fractional scaling issue introduced with Qt6; Reworking wrong part of r167749; Because it's rectangle size, not right/bottom position which should be multiple of device-pixel-ratio.

File:
1 edited

Legend:

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

    r108390 r108392  
    12801280        paintRect.setLeft(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.left(), false));
    12811281        paintRect.setTop(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.top(), false));
    1282         paintRect.setRight(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.right(), true));
    1283         paintRect.setBottom(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.bottom(), true));
     1282        paintRect.setWidth(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.width(), true));
     1283        paintRect.setHeight(findMultipleOfScaleFactor(devicePixelRatio(), paintRect.height(), true));
    12841284    }
    12851285    QRect paintRectHiDPI = 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