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); } }