summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglpaintdevice.h
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@digia.com>2012-12-14 17:25:56 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:55 +0100
commita593de41edfac04f3e3c6dd5bb024254e7e6ff4e (patch)
tree102c21430083e2023485501333e8883940b2114d /src/gui/opengl/qopenglpaintdevice.h
parentd665ba2a9454dbd2ed9f4384e04c31d232b0c5eb (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.h1
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;