Changeset 53517 in vbox
- Timestamp:
- Dec 12, 2014 10:29:33 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97257
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r53499 r53517 63 63 , m_fAutoEnabled(false) 64 64 , m_dScaleFactor(gEDataManager->scaleFactor(vboxGlobal().managedVMUuid())) 65 , m_transform(QTransform().scale(m_dScaleFactor, m_dScaleFactor))66 65 , m_fUseUnscaledHiDPIOutput(gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid())) 67 66 , m_hiDPIOptimizationType(HiDPIOptimizationType_None) 68 67 , m_dBackingScaleFactor(1.0) 69 68 { 69 /* Update coordinate-system: */ 70 updateCoordinateSystem(); 70 71 } 71 72 … … 773 774 /* Fetch new scale-factor: */ 774 775 m_dScaleFactor = gEDataManager->scaleFactor(vboxGlobal().managedVMUuid()); 775 m_transform = QTransform().scale(m_dScaleFactor, m_dScaleFactor); 776 777 /* Update coordinate-system: */ 778 updateCoordinateSystem(); 776 779 } 777 780 … … 832 835 this, SLOT(sltHandleUnscaledHiDPIOutputModeChange(const QString&))); 833 836 #endif /* Q_WS_MAC */ 837 } 838 839 void UIFrameBuffer::updateCoordinateSystem() 840 { 841 /* Reset to default: */ 842 m_transform = QTransform(); 843 844 /* Apply the scale-factor if necessary: */ 845 if (m_dScaleFactor != 1.0) 846 m_transform = m_transform.scale(m_dScaleFactor, m_dScaleFactor); 834 847 } 835 848 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r53499 r53517 243 243 /** Cleanup connections routine. */ 244 244 void cleanupConnections(); 245 246 /** Updates coordinate-system: */ 247 void updateCoordinateSystem(); 245 248 246 249 /** Default paint routine. */
Note:
See TracChangeset
for help on using the changeset viewer.