summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.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/plugins/platforms/ios/qioswindow.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/plugins/platforms/ios/qioswindow.h')
-rw-r--r--src/plugins/platforms/ios/qioswindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index 3a05901ae7..cb2854d60e 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -90,6 +90,7 @@ public:
GLuint framebufferObject(const QIOSContext &context) const;
GLuint colorRenderbuffer(const QIOSContext &context) const;
+ qreal devicePixelRatio() const;
EAGLView *nativeView() const { return m_view; }
@@ -104,6 +105,7 @@ private:
GLint renderbufferWidth;
GLint renderbufferHeight;
} m_glData;
+ qreal m_devicePixelRatio;
};
QT_END_NAMESPACE