Changeset 90734 in vbox
- Timestamp:
- Aug 18, 2021 6:05:46 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r90730 r90734 737 737 QPixmap pixmapNew = QPixmap::fromImage(imageNew); 738 738 /* For HiDPI support parent-widget's device pixel ratio is to be taken into account: */ 739 const double dRatio = parentWidget()->windowHandle()->devicePixelRatio(); 739 double dRatio = 1.0; 740 if ( parentWidget() 741 && parentWidget()->window() 742 && parentWidget()->window()->windowHandle()) 743 dRatio = parentWidget()->window()->windowHandle()->devicePixelRatio(); 740 744 pixmapNew.setDevicePixelRatio(dRatio); 741 745 /* Assign watermark finally: */
Note:
See TracChangeset
for help on using the changeset viewer.