Changeset 53518 in vbox
- Timestamp:
- Dec 12, 2014 10:33:35 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r53517 r53518 479 479 } 480 480 /* Tune according scale-factor: */ 481 if (m_dScaleFactor != 1.0 )481 if (m_dScaleFactor != 1.0 || backingScaleFactor() > 1.0) 482 482 region = m_transform.map(region); 483 483 … … 766 766 #endif /* VBOX_WITH_VIDEOHWACCEL */ 767 767 768 void UIFrameBuffer::setBackingScaleFactor(double dBackingScaleFactor) 769 { 770 /* Remember new backing-scale-factor: */ 771 m_dBackingScaleFactor = dBackingScaleFactor; 772 773 /* Update coordinate-system: */ 774 updateCoordinateSystem(); 775 } 776 768 777 void UIFrameBuffer::sltHandleScaleFactorChange(const QString &strMachineID) 769 778 { … … 788 797 /* Fetch new unscaled HiDPI output mode value: */ 789 798 m_fUseUnscaledHiDPIOutput = gEDataManager->useUnscaledHiDPIOutput(vboxGlobal().managedVMUuid()); 799 800 /* Update coordinate-system: */ 801 updateCoordinateSystem(); 790 802 } 791 803 #endif /* RT_OS_DARWIN */ … … 845 857 if (m_dScaleFactor != 1.0) 846 858 m_transform = m_transform.scale(m_dScaleFactor, m_dScaleFactor); 859 860 /* Apply the backing-scale-factor if necessary: */ 861 if (useUnscaledHiDPIOutput() && backingScaleFactor() > 1.0) 862 m_transform = m_transform.scale(1.0 / backingScaleFactor(), 1.0 / backingScaleFactor()); 847 863 } 848 864 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r53517 r53518 225 225 double backingScaleFactor() const { return m_dBackingScaleFactor; } 226 226 /** Define backing scale factor used by HiDPI frame-buffer. */ 227 void setBackingScaleFactor(double dBackingScaleFactor) { m_dBackingScaleFactor = dBackingScaleFactor; }227 void setBackingScaleFactor(double dBackingScaleFactor); 228 228 229 229 protected slots:
Note:
See TracChangeset
for help on using the changeset viewer.