Android: fix compilation on x86.
Task-number: QTBUG-33554 Change-Id: I4da7410d3b77ec6d72a73d3b6ceb7b76bb48d2b7 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
b357c55f2d
commit
17480111ed
@@ -239,10 +239,10 @@ void QAndroidCameraFocusControl::updateFocusZones(QCameraFocusZone::FocusZoneSta
|
||||
|
||||
QSize viewportSize = m_session->camera()->previewSize();
|
||||
QSizeF focusSize(50.f / viewportSize.width(), 50.f / viewportSize.height());
|
||||
float x = qBound(0.f,
|
||||
float x = qBound(qreal(0),
|
||||
m_actualFocusPoint.x() - (focusSize.width() / 2),
|
||||
1.f - focusSize.width());
|
||||
float y = qBound(0.f,
|
||||
float y = qBound(qreal(0),
|
||||
m_actualFocusPoint.y() - (focusSize.height() / 2),
|
||||
1.f - focusSize.height());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user