diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-04-16 16:02:14 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-18 09:18:43 +0200 |
commit | e25db968846432f087ca800048f5337fd534c159 (patch) | |
tree | d6567f50f96c8ab3af725a236bd8937b491e1203 /src | |
parent | acfccd048368ccbd8466c4332db62807712dd288 (diff) |
QOpenGLPaintDevice: correct painting on retina.
Make QOpenGLPaintDevice::metric(PdmDevicePixelRatio)
return d->devicePixelRatio instead of 1.
Change-Id: I4cf9dd552a700b958212edc8efb990a45e77fd66
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/opengl/qopenglpaintdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp index 1e427c9dd6..f0e7e4953f 100644 --- a/src/gui/opengl/qopenglpaintdevice.cpp +++ b/src/gui/opengl/qopenglpaintdevice.cpp @@ -286,7 +286,7 @@ int QOpenGLPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const case PdmPhysicalDpiY: return qRound(d_ptr->dpmy * 0.0254); case PdmDevicePixelRatio: - return 1; + return d_ptr->devicePixelRatio; default: qWarning("QOpenGLPaintDevice::metric() - metric %d not known", metric); return 0; |