diff --git a/src/desktop/UBCustomCaptureWindow.cpp b/src/desktop/UBCustomCaptureWindow.cpp index 2f5414e0..dc26abad 100644 --- a/src/desktop/UBCustomCaptureWindow.cpp +++ b/src/desktop/UBCustomCaptureWindow.cpp @@ -60,7 +60,11 @@ QPixmap UBCustomCaptureWindow::getSelectedPixmap() { if (mSelectionBand) { - return mWholeScreenPixmap.copy(mSelectionBand->geometry()); + QRect r = mSelectionBand->geometry(); + return mWholeScreenPixmap.copy( r.x() *mWholeScreenPixmap.devicePixelRatio(), + r.y() *mWholeScreenPixmap.devicePixelRatio(), + r.width() *mWholeScreenPixmap.devicePixelRatio(), + r.height() *mWholeScreenPixmap.devicePixelRatio()); } else {