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>
This commit is contained in:
Tobias Koenig
2013-02-08 10:51:07 +01:00
committed by The Qt Project
parent 36655ccdfb
commit b19ec14a62

View File

@@ -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);