Commit c144deec authored by Ghislain MARY's avatar Ghislain MARY

Fix refresh timer interval for camera rendering.

parent 44fa9977
......@@ -178,7 +178,7 @@ Camera::Camera (QQuickItem *parent) : QQuickFramebufferObject(parent) {
setMirrorVertically(true);
mRefreshTimer = new QTimer(this);
mRefreshTimer->setInterval(1 / MAX_FPS * 1000);
mRefreshTimer->setInterval(1000 / MAX_FPS);
QObject::connect(
mRefreshTimer, &QTimer::timeout,
......
......@@ -141,7 +141,7 @@ CameraPreview::CameraPreview (QQuickItem *parent) : QQuickFramebufferObject(pare
setMirrorVertically(true);
mRefreshTimer = new QTimer(this);
mRefreshTimer->setInterval(1 / MAX_FPS * 1000);
mRefreshTimer->setInterval(1000 / MAX_FPS);
QObject::connect(
mRefreshTimer, &QTimer::timeout,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment