comparison view/ViewProxy.h @ 1402:b0eeec95ab5b

Handle integer pixel scaling as well
author Chris Cannam
date Thu, 15 Nov 2018 14:18:26 +0000
parents 28075cc658c9
children a18e78b9c78b
comparison
equal deleted inserted replaced
1401:28075cc658c9 1402:b0eeec95ab5b
154 virtual double scaleSize(double size) const { 154 virtual double scaleSize(double size) const {
155 return m_view->scaleSize(size * m_scaleFactor); 155 return m_view->scaleSize(size * m_scaleFactor);
156 } 156 }
157 157
158 /** 158 /**
159 * Integer version of scaleSize.
160 */
161 virtual int scalePixelSize(int size) const {
162 return m_view->scalePixelSize(size * m_scaleFactor);
163 }
164
165 /**
159 * Scale up pen width for a hi-dpi display without pixel doubling. 166 * Scale up pen width for a hi-dpi display without pixel doubling.
160 * This is like scaleSize except that it also scales the 167 * This is like scaleSize except that it also scales the
161 * zero-width case. 168 * zero-width case.
162 */ 169 */
163 virtual double scalePenWidth(double width) const { 170 virtual double scalePenWidth(double width) const {