summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-01-23 08:55:21 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-01-23 09:03:53 +0200
commit0237941e81d9f6713170c67a8dec6113fec1ef01 (patch)
tree5952e7b7d83c9236fc88bc9d2ab145d72dfad4c3 /src
parent21afc88bedfa420c01d91cc89f62855442bb554f (diff)
Slice view positioning in qml fixed
Task-number: QTRD-2798 Change-Id: I287802424493435eaa54a14cace651b66a0f1a86 Change-Id: I287802424493435eaa54a14cace651b66a0f1a86 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/datavisualization/engine/q3dscene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datavisualization/engine/q3dscene.cpp b/src/datavisualization/engine/q3dscene.cpp
index 19672484..c15610c1 100644
--- a/src/datavisualization/engine/q3dscene.cpp
+++ b/src/datavisualization/engine/q3dscene.cpp
@@ -633,7 +633,8 @@ void Q3DScenePrivate::updateGLSubViewports()
m_glPrimarySubViewport.setWidth(m_primarySubViewport.width() * m_devicePixelRatio);
m_glPrimarySubViewport.setHeight(m_primarySubViewport.height() * m_devicePixelRatio);
- m_glSecondarySubViewport.setX(m_secondarySubViewport.x() * m_devicePixelRatio);
+ m_glSecondarySubViewport.setX((m_secondarySubViewport.x() + m_viewport.x())
+ * m_devicePixelRatio);
m_glSecondarySubViewport.setY((m_windowSize.height() - (m_secondarySubViewport.y()
+ m_viewport.y()
+ m_secondarySubViewport.height()))