From 6d2fd84472c6c9512b22557ebb94eca82686db0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Thu, 1 Oct 2020 14:27:39 +0200 Subject: [PATCH] ensure grabbed image is properly sized for screen target when screen mirroring is enabled --- src/gui/UBScreenMirror.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/UBScreenMirror.cpp b/src/gui/UBScreenMirror.cpp index 40f782f4..9bc045d2 100644 --- a/src/gui/UBScreenMirror.cpp +++ b/src/gui/UBScreenMirror.cpp @@ -71,7 +71,7 @@ void UBScreenMirror::paintEvent(QPaintEvent *event) int x = (width() - mLastPixmap.width()) / 2; int y = (height() - mLastPixmap.height()) / 2; - painter.drawPixmap(x, y, mLastPixmap); + painter.drawPixmap(x, y, width(), height(), mLastPixmap); } }