From cc7988907c7558e8759b24fc9d826eb81ed11d35 Mon Sep 17 00:00:00 2001 From: Tian Zhou Date: Tue, 19 Nov 2019 03:15:12 -0500 Subject: [PATCH] make the size looks better for horizontal screen --- QtScrcpy/device/ui/videoform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index 18fbff4..59dc1e8 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -145,7 +145,8 @@ 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()/2)); + showSize.setWidth(qMin(newSize.width(), screenRect.width() - 200)); showSize.setHeight(showSize.width() * m_widthHeightRatio); }