- Timestamp:
- Nov 16, 2017 9:36:04 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r69642 r69708 67 67 const QIcon full16x9 = UIIconPool::iconSet(":/preview_full_16to9_242x155px.png"); 68 68 const QIcon full4x3 = UIIconPool::iconSet(":/preview_full_4to3_242x192px.png"); 69 70 // WORKAROUND: 71 // Since we don't have x3 and x4 HiDPI icons yet, 72 // and we hadn't enabled automatic up-scaling for now, 73 // we have to make sure m_dRatio is within possible bounds. 74 const QList<QSize> sizes = empty16x10.availableSizes(); 75 if (sizes.size() >= 2) 76 m_dRatio = qMin(m_dRatio, (double)sizes.last().width() / sizes.first().width()); 77 69 78 m_sizes.insert(AspectRatioPreset_16x10, QSize(242 * m_dRatio, 167 * m_dRatio)); 70 79 m_sizes.insert(AspectRatioPreset_16x9, QSize(242 * m_dRatio, 155 * m_dRatio)); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.h
r69642 r69708 113 113 QMenu *m_pUpdateTimerMenu; 114 114 QHash<PreviewUpdateIntervalType, QAction*> m_actions; 115 constdouble m_dRatio;115 double m_dRatio; 116 116 const int m_iMargin; 117 117 QRect m_vRect;
Note:
See TracChangeset
for help on using the changeset viewer.