summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-21 14:31:55 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-23 11:05:33 +0200
commit717b39e9bfddd6799318fc1fe2b59abd33825db3 (patch)
treea05ef7620b280f2cc0fa6c3509ac284ac2c02325 /tracker-pt
parent42c687b8adb54d3c446483ad085b06d2caf0f1c8 (diff)
tracker/{aruco,pt}: draw the whole image rectangle
This fixes forced hidpi
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/pt_video_widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/pt_video_widget.cpp b/tracker-pt/pt_video_widget.cpp
index 749eca0b..d8380caa 100644
--- a/tracker-pt/pt_video_widget.cpp
+++ b/tracker-pt/pt_video_widget.cpp
@@ -36,11 +36,11 @@ void PTVideoWidget::update_image(const cv::Mat& frame)
}
}
-void PTVideoWidget::paintEvent(QPaintEvent* e)
+void PTVideoWidget::paintEvent(QPaintEvent*)
{
QMutexLocker foo(&mtx);
QPainter painter(this);
- painter.drawImage(e->rect(), texture);
+ painter.drawImage(rect(), texture);
}
void PTVideoWidget::update_and_repaint()