Make device specific projection matrix setter virtual.
authorHannu Lyytinen <hannu.lyytinen@nomovok.com>
Wed, 11 Apr 2012 20:08:19 +0000 (23:08 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Apr 2012 22:35:20 +0000 (00:35 +0200)
Allow custom scene graph renderers to set the device specific projection
matrix in their own way. This is needed for the KMS QPA platform, where
the Y coordinate of the screen gets inverted (see discussion at
http://lists.freedesktop.org/archives/wayland-devel/2012-March/
002506.html).

Change-Id: I08f3cd4b829e5b583fe96a9dfd67aa8d23a11b6b
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/scenegraph/coreapi/qsgrenderer_p.h

index 9d2402d..3dced9c 100644 (file)
@@ -108,7 +108,7 @@ public:
     qreal determinant() const { return m_current_determinant; }
 
     void setProjectionMatrixToDeviceRect();
-    void setProjectionMatrixToRect(const QRectF &rect);
+    virtual void setProjectionMatrixToRect(const QRectF &rect);
     void setProjectionMatrix(const QMatrix4x4 &matrix);
     QMatrix4x4 projectionMatrix() const { return m_projection_matrix; }
     bool isMirrored() const { return m_mirrored; }