summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-12 15:43:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-12 15:48:16 +0200
commit4c4c783d023cf1bb6a8d7d883bf8d3384f7b7da1 (patch)
treeeb81974538149ce053d923991eaeebe2a2da3d9e /pose-widget
parent8cb6d9d0a5aa617d0d9922ea26f0c98df27b5f1e (diff)
minor fixes only
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/pose-widget.cpp4
-rw-r--r--pose-widget/pose-widget.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index 54278c34..8646df30 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -47,7 +47,7 @@ void pose_widget::paintEvent(QPaintEvent* event)
xform.with_image_lock([&](const QImage& image)
{
- p.drawImage(event->rect(), image, offset, offset);
+ p.drawImage(event->rect(), image, QRect(offset, offset, pose_transform::w, pose_transform::h));
});
}
@@ -71,7 +71,7 @@ void pose_transform::run()
project_quad_texture();
end:
- portable::sleep(9);
+ portable::sleep(23);
}
}
diff --git a/pose-widget/pose-widget.hpp b/pose-widget/pose-widget.hpp
index 1d34778a..a27bf4b9 100644
--- a/pose-widget/pose-widget.hpp
+++ b/pose-widget/pose-widget.hpp
@@ -37,7 +37,7 @@ using lock_guard = std::unique_lock<std::mutex>;
class pose_widget;
-class pose_transform final : private QThread
+struct pose_transform final : private QThread
{
pose_transform(QWidget* dst);
~pose_transform();