diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-17 00:52:44 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-17 00:52:59 +0100 | 
| commit | 1bd39f155895a281a34b07687342c6ade3fc47a8 (patch) | |
| tree | 2474606ff7eb23a3dcd2a9118252289359773361 | |
| parent | 3ef9b6c39949ac6d62134cf7fbd2e9f720ce3bc3 (diff) | |
video/widget: fix wrongly-sized QImage
Reported by: @Slion
Issue: #874
| -rw-r--r-- | video/video-widget.cpp | 6 | 
1 files changed, 0 insertions, 6 deletions
| diff --git a/video/video-widget.cpp b/video/video-widget.cpp index 3e6d9038..e73d34db 100644 --- a/video/video-widget.cpp +++ b/video/video-widget.cpp @@ -43,12 +43,6 @@ void video_widget::paintEvent(QPaintEvent*)  {      QMutexLocker foo(&mtx); -    if (texture.width() != W || texture.height() != H) -    { -        init_image_nolock(); -        texture.fill(Qt::gray); -    } -      QPainter painter(this);      painter.drawImage(rect(), texture);  } | 
