From 28c4c27b693398d134e92ac51d180aa81ed383c8 Mon Sep 17 00:00:00 2001 From: rankun Date: Sun, 19 Jan 2020 22:31:54 +0800 Subject: [PATCH] fix: too big --- QtScrcpy/device/ui/videoform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index 95f41e3..78be624 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -145,8 +145,7 @@ void VideoForm::updateShowSize(const QSize &newSize) showSize.setHeight(qMin(newSize.height(), screenRect.height() - 200)); showSize.setWidth(showSize.height() * m_widthHeightRatio); } else { - //showSize.setWidth(qMin(newSize.width(), screenRect.width()/2)); - showSize.setWidth(qMin(newSize.width(), screenRect.width() - 200)); + showSize.setWidth(qMin(newSize.width(), screenRect.width()/2)); showSize.setHeight(showSize.width() * m_widthHeightRatio); }