diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 19:42:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 21:10:13 +0200 |
commit | f837647d6159941526ac479050bf317ae13a41a1 (patch) | |
tree | 0f711ed525fc83075f58deee5788cfc1bd3da59a /video | |
parent | 69d068a7da4f46eab4e2437b5dbf237b1c1d7bed (diff) |
video/widget, tracker/pt: skip widget processing in more cases
Diffstat (limited to 'video')
-rw-r--r-- | video/video-widget.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video-widget.hpp b/video/video-widget.hpp index bb218c69..4f54b2b9 100644 --- a/video/video-widget.hpp +++ b/video/video-widget.hpp @@ -29,12 +29,12 @@ struct OTR_VIDEO_EXPORT video_widget : QWidget void resizeEvent(QResizeEvent*) override; void paintEvent(QPaintEvent*) override; void draw_image(); + bool fresh() const; protected: mutable QMutex mtx { QMutex::NonRecursive }; QImage texture; std::vector<unsigned char> vec; - bool fresh() const; void set_fresh(bool x); void set_image(const unsigned char* src, int width, int height, int stride, QImage::Format fmt); |