diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-04 18:46:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-04 18:46:27 +0100 |
commit | 79119a08157aa954b3b2ecd18c8384b80a03970f (patch) | |
tree | db5332566e6a76f74699bb6eaf146005020e8026 /ftnoir_tracker_ht/ht_video_widget.h | |
parent | 5d51487b70a07f1853f1cbcf84ac5eb635e38bbe (diff) |
draw images directly, without pixmaps
Diffstat (limited to 'ftnoir_tracker_ht/ht_video_widget.h')
-rw-r--r-- | ftnoir_tracker_ht/ht_video_widget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_ht/ht_video_widget.h b/ftnoir_tracker_ht/ht_video_widget.h index 3fff395e..cbfe6ddc 100644 --- a/ftnoir_tracker_ht/ht_video_widget.h +++ b/ftnoir_tracker_ht/ht_video_widget.h @@ -32,13 +32,13 @@ protected slots: void paintEvent( QPaintEvent* e ) { QMutexLocker foo(&mtx); QPainter painter(this); - painter.drawPixmap(e->rect(), pixmap, e->rect()); + painter.drawImage(e->rect(), texture); } void update_and_repaint(); private: QMutex mtx; - QPixmap pixmap; + QImage texture; QTimer timer; char fb[2048*2048*3]; int width,height; |