summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Koenig <tobias.koenig.qnx@kdab.com>2013-02-08 10:51:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-08 13:35:05 +0100
commitb19ec14a62dbc8e5f5d2c20335ccd9e609321b6d (patch)
tree9f75cd8e0e05fa930d124c82177158116725005c
parent36655ccdfb55fc16044d6ebb78c27e98abf00019 (diff)
Blackberry: Ensure that camera viewfinder texture is upright
Make sure that the texture is upright when the device is upright. When rotating the device, it's the applications responsibility to rotate the texture of the viewfinder (e.g. through the QDeclarativeVideoOutput::orientation property). Change-Id: I6e453ce9bdde5197104533f844b1079b3c3db908 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
-rw-r--r--src/plugins/blackberry/camera/bbcamerasession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/blackberry/camera/bbcamerasession.cpp b/src/plugins/blackberry/camera/bbcamerasession.cpp
index d414c82e1..9956bd007 100644
--- a/src/plugins/blackberry/camera/bbcamerasession.cpp
+++ b/src/plugins/blackberry/camera/bbcamerasession.cpp
@@ -785,7 +785,7 @@ void BbCameraSession::handlePhotoViewFinderData(camera_buffer_t *buffer)
{
QTransform transform;
- transform.rotate(360 - m_nativeCameraOrientation);
+ transform.rotate(m_nativeCameraOrientation);
const QImage frame = convertFrameToImage(buffer).transformed(transform);