diff options
author | Morten Johan Sorvig <morten.sorvig@digia.com> | 2012-12-14 17:25:56 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-27 23:55:55 +0100 |
commit | a593de41edfac04f3e3c6dd5bb024254e7e6ff4e (patch) | |
tree | 102c21430083e2023485501333e8883940b2114d /src/gui/opengl/qopenglpaintdevice.h | |
parent | d665ba2a9454dbd2ed9f4384e04c31d232b0c5eb (diff) |
iOS: Retina display support.
Scale the OpenGL paint device size and physical dpi
by the device pixel ratio.
Change-Id: I8b576f23129aafc47371795151c548663e94ad52
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/gui/opengl/qopenglpaintdevice.h')
-rw-r--r-- | src/gui/opengl/qopenglpaintdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglpaintdevice.h b/src/gui/opengl/qopenglpaintdevice.h index 731000f131..5868a5740a 100644 --- a/src/gui/opengl/qopenglpaintdevice.h +++ b/src/gui/opengl/qopenglpaintdevice.h @@ -68,6 +68,7 @@ public: QOpenGLContext *context() const; QSize size() const; void setSize(const QSize &size); + void setDevicePixelRatio(qreal devicePixelRatio); qreal dotsPerMeterX() const; qreal dotsPerMeterY() const; |