diff options
Diffstat (limited to 'video/video-widget.hpp')
-rw-r--r-- | video/video-widget.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/video-widget.hpp b/video/video-widget.hpp index 9218643b..4f54b2b9 100644 --- a/video/video-widget.hpp +++ b/video/video-widget.hpp @@ -7,7 +7,6 @@ #pragma once -#include "compat/qt-dpi.hpp" #include "compat/math.hpp" #include "export.hpp" @@ -21,7 +20,7 @@ #include <QMutex> -struct OTR_VIDEO_EXPORT video_widget : QWidget, public screen_dpi_mixin<video_widget> +struct OTR_VIDEO_EXPORT video_widget : QWidget { video_widget(QWidget* parent = nullptr); @@ -30,12 +29,12 @@ struct OTR_VIDEO_EXPORT video_widget : QWidget, public screen_dpi_mixin<video_wi 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); |