From b19ec14a62dbc8e5f5d2c20335ccd9e609321b6d Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Fri, 8 Feb 2013 10:51:07 +0100 Subject: [PATCH] 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 --- src/plugins/blackberry/camera/bbcamerasession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/blackberry/camera/bbcamerasession.cpp b/src/plugins/blackberry/camera/bbcamerasession.cpp index d414c82..9956bd0 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); -- 2.7.4