summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-20 17:43:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-20 17:43:58 +0100
commit778b82aee0b6f41bb4bafdaf6d079221306d942c (patch)
tree3f634265e1e34172dd08bd0021441351c1994f4c
parent2f679349aea7f4602175a500340c3a7fb8800d75 (diff)
tracker/pt: don't resize twice in widget
Fix typo.
-rw-r--r--tracker-pt/pt_video_widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/pt_video_widget.cpp b/tracker-pt/pt_video_widget.cpp
index 095c325f..608f754a 100644
--- a/tracker-pt/pt_video_widget.cpp
+++ b/tracker-pt/pt_video_widget.cpp
@@ -39,7 +39,7 @@ void PTVideoWidget::update_and_repaint()
cv::resize(_frame2, _frame3, cv::Size(width(), height()), 0, 0, cv::INTER_NEAREST);
- texture = QImage((const unsigned char*) _frame2.data, _frame2.cols, _frame2.rows, QImage::Format_RGB888);
freshp = false;
update();
+ texture = QImage((const unsigned char*) _frame3.data, _frame3.cols, _frame3.rows, QImage::Format_RGB888);
}