aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHannu Lyytinen <hannu.lyytinen@nomovok.com>2012-04-11 23:08:19 +0300
committerQt by Nokia <qt-info@nokia.com>2012-04-13 00:35:20 +0200
commit13515d633423d1195320fc3ddc4703ed3b3c8488 (patch)
treecd322f792c345631826f53ce7c4fa8bab9c4ab30 /src
parentadf3f8a72af5114e0b372f952d2ad94bb8511adb (diff)
Make device specific projection matrix setter virtual.
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>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/coreapi/qsgrenderer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer_p.h b/src/quick/scenegraph/coreapi/qsgrenderer_p.h
index 9d2402d727..3dced9cfa9 100644
--- a/src/quick/scenegraph/coreapi/qsgrenderer_p.h
+++ b/src/quick/scenegraph/coreapi/qsgrenderer_p.h
@@ -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; }